I am managing quite a large website fairly complex. We are using ansible for deployments; majority of the deployments are fine we can just include the playbooks and roles in a master playbook and it works like a charm.
Master playbooks looks like something below
- Master PlayBook
- includes deployment playbook that have vars/config specific for deploying latest release
- deployment playbooks includes specific roles related to the SW
- roles have tasks that are tagged appropriately
The issue we are having is that we can't pass on the tags while including the playbooks in master playbook. Something like
- include: task1.yml tags: t1
This work absolutely fine if it's called from the command line, without using tags in master playbok
ansible-playbook -i host master_playbook.yml -t t1
Any suggestions for a possible solutions would be helpful