Verbose output

Maximum verbosity — shows every task, connection, output

ansible-playbook playbook.yml -vvv

tool
ansible56 commands
tags
ansibledebug

More ansible commands

  • ansible-playbook playbook.yml --syntax-check

    Validate YAML syntax without executing any tasks

  • ansible all -m ping -i inventory.ini

    Check SSH connectivity and Python for all hosts

  • ansible webservers -m shell -a 'uptime && free -h' -i inventory.ini

    Run a shell command on all hosts in the webservers group

  • ansible <host> -m setup -i inventory.ini | jq '.ansible_facts | {os: .ansible_distribution, mem: .ansible_memtotal_mb}'

    Collect and filter Ansible facts for a single host

  • ansible-playbook site.yml --check --diff -i inventory.ini

    Show what would change without making any modifications

all 56 ansible commands