Questions
- It is a best practice to avoid using command and shell modules as much as possible. (True/False)
- Aliases help in keeping your inventory generic. (True/False)
- What does the
ansible-playbook
command do? (Choose one)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 help in building reusability within your Ansible configuration? (Multiple answers are possible)
a. Use variables.
b. Use Jinja2 templates.
c. Use roles.
d. Use tasks.
- While naming roles, what should we consider? (Multiple answers are possible)
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? (Choose one)
a...