Consider the following file.authors: - joe - john editors: -frank managers: editing: josh authoring: sam How many lists are defined in the provided file?
Answer(s): C
There are two lists in the file. Note use of the hyphens.
What Ansible variable allows access to internal Ansible data?
Answer(s): B
Magic variables allow access to internal Ansible data such as host groups and inventory hosts.
Where are custom facts defined on a host?
Custom facts are gathered from all files with the .fact extension in /etc/ansible/facts.d.
Consider the provided dictionary variable definition:drives: name: hd1 type: physical size: 1G Which of the following are valid ways to retrieve data from this dictionary? (Choose all that apply.)
Answer(s): A,C,D
{{ drives }}: This will return the whole dictionary.{{ drives.size }}: This will return the size value for the drives dictionary.
How are facts collected? (Choose all that apply.)
Answer(s): A,D
The setup module collects facts.
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.