Advanced topics
In this section, we will show you how to handle advanced Ansible features and techniques for debugging and automatically checking your playbooks for possible errors.
Debugging
In order to debug issues with your Ansible playbook runs, it is often useful to increase the verbosity level to get more detailed output about what Ansible is doing. Ansible has four verbosity levels: -v
, -vv
, -vvv
, and -vvvv
. The more v
s you add, the more verbose the output becomes.
By default, Ansible runs with -v
, which provides basic information about the tasks that are executed. However, if you are experiencing issues with your playbook, it may be helpful to increase the verbosity level to get more detailed output. For example, using -vv
will provide additional information about the playbooks, roles, and tasks that are being executed, while using -vvv
will also show the tasks that Ansible is skipping.
To increase the verbosity level of an Ansible playbook run, simply add one...