EX447試験無料問題集「RedHat Red Hat Certified Specialist in Advanced Automation: Ansible Best Practices 認定」

Create a file called specs.empty in home/bob/ansible on the local machine as follows:
HOST=
MEMORY=
BIOS=
VDA_DISK_SIZE=
VDB_DISK_SIZE=
Create the playbook /home/bob/ansible/specs.yml which copies specs.empty to all remote nodes' path
/root/specs.txt. Using the specs.yml playbook then edit specs.txt on the remote machines to reflect theappropriate ansible facts.
正解:
See the Explanation for complete Solution below.
Explanation
Solution as:

Create an empty encrypted file called and set the passwordtonotsafepw.
Rekey the passwordtoiwejfj2221.
正解:
See the Explanation for complete Solution below.
Explanation
ansible-vault create myvault.yml
Create new password: notsafepw Confirm password: notsafepwansible-vault rekey myvault.yml Current password: notsafepw New password: iwejfj2221 Confirm password: iwejfj2221
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