Check mode (dry run)
Show what would change without making any modifications
ansible-playbook site.yml --check --diff -i inventory.ini
- tool
- ansible56 commands
More ansible commands
-
ansible-playbook deploy.yml -e 'env=prod version=2.1.0' -i inventory.iniOverride variables from the command line
-
ansible-playbook site.yml --limit 'web-01,web-02' -i inventory.iniRun playbook only on specified hosts
-
ansible-playbook site.yml --tags 'config,restart' -i inventory.iniExecute only tasks marked with specified tags
-
ansible-playbook site.yml --skip-tags 'slow,optional' -i inventory.iniSkip tasks with specified tags
-
ansible-playbook site.yml -vvv -i inventory.ini 2>&1 | tee /tmp/ansible.logMaximum verbosity for debugging; save to log