Presuming the inventory is not dynamic, Ansible inventories can be specified using what two file formats?
Answer(s): C
Ansible inventories may be provided in either YAML or INI format.
An Ansible inventory may contain which of the following? (Choose all that apply.)
Answer(s): A,B,C
Groups of hosts (and even groups of groups) may be defined within an inventory. The primary purpose of an Ansible inventory is to maintain a list of hosts with which Ansible may interact.
Which module returns Ansible facts?
Answer(s): B
The setup module gathers facts against target hosts and prints the facts to stdout.
What does the -a flag allow you to specify?
Answer(s): A
Which of the following is a good use case for an ad-hoc command? (Choose all that apply.)
Installing netcat is a single yum command that would be easily run across a group of common servers with an Ansible ad-hoc command. A single command run against several servers is a perfect use case for an ad-hoc command. Writing a playbook would be overkill.
Post your Comments and Discuss RedHat EX407 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the EX407 content, but please register or login to continue.