You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ansible supports tagging plays.
If we applied tags on each play, it would be easier to compose your plays on the command line, thus eliminating the need to change the playbooks if you want to skip a play, or only apply a specific set of plays.
for example I could tag the play which deploys the snmp stuff with "service, snmp"
then later I can exclude snmp by invoking the ansible playbook with "--skip-tags snmp" and thus avoid it being deployed.
Or I may choose to update all the services by invoking with "--tags service"
This might also be a good way to deal with "standalone / cluster" plays.
What needs to happen:
Someone has to define useful tags, and then go and tag the plays accordingly.
The text was updated successfully, but these errors were encountered:
Ansible supports tagging plays.
If we applied tags on each play, it would be easier to compose your plays on the command line, thus eliminating the need to change the playbooks if you want to skip a play, or only apply a specific set of plays.
for example I could tag the play which deploys the snmp stuff with "service, snmp"
then later I can exclude snmp by invoking the ansible playbook with "--skip-tags snmp" and thus avoid it being deployed.
Or I may choose to update all the services by invoking with "--tags service"
This might also be a good way to deal with "standalone / cluster" plays.
What needs to happen:
Someone has to define useful tags, and then go and tag the plays accordingly.
The text was updated successfully, but these errors were encountered: