O'Reilly logo

Learning Ansible 2 - Second Edition by Fabio Alessandro Locati

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Ansible verbosity

One of the first options anyone picks up is the debug option. To understand what is happening when you run the playbook, you can run it with the verbose (-v) option. Every extra v will provide the end user with more debug output.

Let's see an example of using the playbook debug for a single task using the following debug options:

  • The -v option provides the default output, as shown in the preceding examples.
  • The -vv option adds a little more information, as shown in the following example:
 Using /etc/ansible/ansible.cfg as config file PLAYBOOK: setup_apache.yaml ******************************* 1 plays in setup_apache.yaml PLAY [all] ************************************************ TASK [setup] ********************************************** ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required