Questions
- It is a best practice to avoid using
command
andshell
modules as much as possible. (True/False) - Aliases help in keeping your inventory generic. (True/False)
- What does the
ansible-playbook
command do?A. It runs an ad hoc task on the inventory.
B. It runs a series of tasks on the inventory.
C. It applies the plays and tasks configured with the playbook.
D. It destroys the configuration from managed nodes.
- Which of the following techniques helps in building reusability within your Ansible configuration? (Choose three)
A. Use variables.
B. Use Jinja2 templates.
C. Use roles.
D. Use tasks.
- While naming roles, what should we consider? (Choose two)
A. Name roles as precisely as possible.
B. While thinking of roles, think of the service instead of the full stack.
C. Use generic names for roles.
- In which directory should you define variables within roles if the variable’s value is likely to change?
A.
defaults
B.
vars
- Handlers are triggered when the output...