problem statement: we have a playbook that we’re looking to use but do not own, playbook has a number of tags that we’ll need to use to skip several tags that will impact our application.
In order to enforce tower RBAC, we need to run workflow that includes another playbook prior to this one which will feed a list of tags within file.
Option 1:
Tagging as a variable
- Can we parameterize tagging? Meaning feed tags as a dynamic variable.
Option 2:
As an alternative to option1, if we cannot dynamically feed a tag as a variable, in a workflow that is being executed, if we update one of its template, will that newly saved template be run in the running workflow? Or will the original one be still running
WORKFLOW :: start > template1 >> template2 >> template3
[ Update template2 via api ] [ run updated template2? ]
Here’s what we’re looking to achieve from the “generate list of tag”, we’re looking for the same results as executing ansible-playbook patch.yml --list-tags
but from the ansible tower
$ ansible-playbook patch.yml --list-tags
sample