EX407 practice questions, page 2 of 4, with answer review and explanations.
Question 6
Is it possible to specify multiple inventory files at once?
Yes, you specify your inventory as a directory containing valid inventory files.
No.
Yes, you must provide extra parameters to the -i flag.
Yes, you must specify a reference inventory master file.
Question 7
What keyword stores a command's output into a variable?
register
output
output is stored in a variable named results by default
debug
Question 8
What does the lineinfile module do?
Allow addition of lines anywhere in a file
Allows to grep for lines in a provided file
Allow additions of lines to the end of a file only
Input data into a file from stdin
Question 9
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?