Per-task timing profile ansible
Rank tasks by wall-clock time to find the slow steps; profile_roles is the per-role variant
ANSIBLE_CALLBACKS_ENABLED=profile_tasks ansible-playbook site.yml
more ansible
all 56 commands →
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
Run specific tag
ansible-playbook -i inventory playbook.yml --tags install,configure
Skip specific tags
ansible-playbook -i inventory playbook.yml --skip-tags cleanup