Consider the following playbook.- hosts: webservers become: yes - name: install httpd yum: name: httpd state: latest Which line includes a syntax error?
Answer(s): D
The "task:" directive is required at the prior to providing the tasks of a playbook. Without it, Ansible will not throw an error.
Which of the following attributes specifies how a handler can be notified? (Choose all that apply.)
Answer(s): A,C
While using the handler's name attribute is not encouraged, it does work.
What is the primary difference between the shell and command module?
Answer(s): B
Which command is the correct way to run the playbook /home/ansible/Buildwww.yml using the inventory file / home/ansible/inventory, assuming your present working directory is /home/ansible?
This command is the correct way to run the playbook using the requested inventory
Which Ansible ad-hoc flag is analogous to the become directive?
Answer(s): A
The b flag actually stands for become! They both have Ansible escalate to the become_user.
Post your Comments and Discuss RedHat EX407 exam prep with other Community members: