Skip specific tags ansible
Skip tasks tagged slow or optional
ansible-playbook site.yml -i inventory.ini --skip-tags 'slow,optional'
more ansible
all 56 commands →
Encrypt variable with Vault
ansible-vault encrypt_string 'mysecretpassword' --name 'db_password'
Limit to specific hosts
ansible-playbook deploy.yml -i inventory.ini --limit 'web01,web02'
Step through tasks interactively
ansible-playbook site.yml -i inventory.ini --step
Rekey vault file
ansible-vault rekey vault.yml --new-vault-password-file new_pass.txt
Multiple vault IDs with prompt
ansible-playbook site.yml --vault-id dev@dev_pass.txt --vault-id prod@prompt