EX447 無料問題集「RedHat Red Hat Certified Specialist in Advanced Automation: Ansible Best Practices」
In /home/sandy/ansible/create a playbook called the play create a logical volume calledIv0and make it of size 1500MiB on volume group If there is not enough space in the volume groupprinta message
"Not enough space for logical vol instead. If the volume group still doesn't exist, create a message"Volume group doesn't exist" filesystem on allIv0logical volumes. Don't mount the logical volume.
"Not enough space for logical vol instead. If the volume group still doesn't exist, create a message"Volume group doesn't exist" filesystem on allIv0logical volumes. Don't mount the logical volume.
正解:
See the Explanation forcomplete Solution below.
Explanation
Solution as:

Explanation
Solution as:

Create a playbook called regulartasks.yml which has the system that append the date to /root/datefile every day at noon. Name is job 'datejob'
正解:
See the Explanation forcomplete Solution below.
Explanation
Solution as:

Explanation
Solution as:

Create a file calledpackages.yml in/home/sandy/ansibleto install some packages for the following hosts. On dev, prod and webservers install packages httpd, mod_ssl, and mariadb. On dev only install the development tools package. Also, on dev host update all the packages tothe latest.
正解:
See the Explanation for complete Solution below.
Explanation
Solution as:

** NOTE 1 a more acceptable answer is likely 'present' since it's not asking to install the latest state: present
** NOTE 2 need to update thedevelopment node
- name: update all packages on development node
yum:
name: '*'
state: latest
Explanation
Solution as:

** NOTE 1 a more acceptable answer is likely 'present' since it's not asking to install the latest state: present
** NOTE 2 need to update thedevelopment node
- name: update all packages on development node
yum:
name: '*'
state: latest