Run playbook with tags ansible
Execute only tasks tagged nginx or ssl
ansible-playbook site.yml -i inventory.ini --tags 'nginx,ssl'
more ansible
all 56 commands →
Skip specific tags
ansible-playbook site.yml -i inventory.ini --skip-tags 'slow,optional'
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