Examine the following inventory excerpt file named /home/user/ansible/inventory. [dbservers] db1.example.com Which of the following files does Ansible check for variables related to that inventory? (Choose all that apply.)
A. /home/user/ansible/dbservers
B. /home/user/ansible/host_vars/db1.example.com
C. /home/user/ansible/host_vars/db1
D. /home/user/ansible/group_vars/dbservers
Is it possible to specify multiple inventory files at once?
A. Yes, you specify your inventory as a directory containing valid inventory files.
B. No.
C. Yes, you must provide extra parameters to the -i flag.
D. Yes, you must specify a reference inventory master file.
Which of the following are valid default locations for Ansible configuration? (Choose all that apply.)
A. etc/ansible/ansible.cfg
B. ${HOME}/.ansible.cfg
C. ${ANSIBLE_CONFIG}
D. /etc/ansible/config
By default, how many times can a role be applied during a play?
A. Once, no matter the parameters provided.
B. As many times as necessary, no matter the parameters.
C. Once, presuming it is only applied with a single set of parameters.
D. As many times as necessary, presuming the `single_run' attribute is set to false.
Where does ansible-galaxy install place roles by default?
A. $PWD/roles
B. /etc/ansible/roles
C. /etc/roles
D. /usr/share/ansible/roles
What values will serial accept? (Choose all that apply.)
A. A mix of integer and appropriately specified percentage values
B. Symbolic percentage values (as in 50%)
C. Decimal percentage values (as in .50)
D. Integer values
Which of the following is a configuration file for Ansible Tower?
A. /etc/ansible/tower.py
B. /etc//tower/settings.ini
C. /etc/ansible/tower.ini
D. /etc//tower/settings.py
State whether the following statement is true or false. A template has a maximum of 10 variables.
A. True
B. False
State whether the following statement is true or false.
Ansible tower can be used to manage your ansible systems.
A. True
B. False
SIMULATION
Using the Simulation Program, perform the following tasks:
Ad-Hoc Ansible Commands (Number Two) Task:
1.
Use the ad-hoc command to make sure php is installed.
2.
Use the ad-hoc command to make sure that php is installed and is the latest version.
3.
Use the ad-hoc command to make sure that httpd is installed.
4.
Use the ad-hoc command to remove httpd from the servers.
A.