Is it possible to specify multiple inventory files at once?
Answer(s): A
What keyword stores a command's output into a variable?
The register keyword will store output from the preceding command into a provided variable.
What does the lineinfile module do?
The purpose of the lineinfile module is to add lines anywhere in a file passed on a pattern.
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?
This command will run a given playbook successfully.
Post your Comments and Discuss RedHat EX407 exam prep with other Community members: