Keep remote temp files ansible
Preserve pushed module scripts under ~/.ansible/tmp to debug a failing module by hand
ANSIBLE_KEEP_REMOTE_FILES=1 ansible-playbook site.yml -vvvv --limit <host>
more ansible
all 56 commands →
Run a playbook
ansible-playbook -i inventory/prod playbook.yml --diff
Limit to specific host
ansible-playbook -i inventory playbook.yml --limit host1,host2
Run specific tag
ansible-playbook -i inventory playbook.yml --tags install,configure
Skip specific tags
ansible-playbook -i inventory playbook.yml --skip-tags cleanup
Dry run (check mode)
ansible-playbook -i inventory playbook.yml --check --diff