I am looking for a way to always play a role regardless of --tagsargs.
Here is a simple play:
- hosts: all
roles:
- { role: role1, tags: always },
- { role: role2, tags: tag1 },
- { role: role3, tags: tag2 }
I'd like to run only role1, and role2when you start the next filter (instead role2):
ansible-playbook -i hosts deploy.yml --tags tag1
Although this was the default behavior with a special tag always(see http://docs.ansible.com/ansible/playbooks_tags.html#special-tags )
I play with Ansible 1.8.4.
source
share