Resume at a specific task ansible
Skip everything before a named task; resume a failed long playbook without redoing setup
ansible-playbook site.yml --start-at-task "Deploy app config"
more ansible
all 56 commands →
List tasks and hosts dry
ansible-playbook site.yml --list-tasks --list-hosts -i prod
Per-task timing profile
ANSIBLE_CALLBACKS_ENABLED=profile_tasks ansible-playbook site.yml
Keep remote temp files
ANSIBLE_KEEP_REMOTE_FILES=1 ansible-playbook site.yml -vvvv --limit <host>
Run a playbook
ansible-playbook -i inventory/prod playbook.yml --diff
Limit to specific host
ansible-playbook -i inventory playbook.yml --limit host1,host2