Table of Contents

Ansible - Diaganostic

About

This page gives information on how to debug a problem (diagnostic) for Ansible.

List

Increase the verbosity of the playbook command

Ansible - ansible-playbook cli verbosity can be given:

anisble-playbook -v
anisble-playbook -vv # for more
anisble-playbook -vvv # for more
anisble-playbook  -vvvv # to enable connection debugging

Use the log or debug module inside your playbook

Use tag to run or not debug task

tasks:
  - debug: msg="{{ showmevar }}"
    tags: [ never, debug ]