Ansible - Diaganostic

> Infrastructure as code > Ansible

1 - List

  • Use ANSIBLE_DEBUG=1 to see detailed information
  • Tag: Example: The task will only run when the debug or never tag is explicitly requested. The never tag prevents a task from running unless a tag is specifically requested.
tasks:
  - debug: msg="{{ showmevar }}"
    tags: [ never, debug ]
anisble-playbook -v
anisble-playbook -vv # for more
anisble-playbook -vvv # for more
anisble-playbook  -vvvv # to enable connection debugging