Consider the following playbook.--- - hosts: local become: yes tasks: - name: create users user: name: "{{item}}" with_items: - sam - john - bob How many times is the user module invoked?
Answer(s): B
The call count will be based on the number of times the with_items loop executes - which is 3 in this case
What command is used to run a playbook?
Answer(s): A
This command will run a given playbook successfully.
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.
Post your Comments and Discuss RedHat EX407 exam with other Community members:
To protect our content from bots for real learners like you, we ask you to register for free. Sign in or sign up now to continue with the EX407 material!