...

Cloud Computing - Ansible

Back to Course

Lesson Description


Lession - #826 Ansible Tags


A tag is a attribute that you can set to an Ansible design (plays, roles, tasks>
, and afterward when you run a playbook you can utilize - tags or - skip-tags to execute a subset of tasks.



If you have a large playbook, it very well might be helpful to run just unambiguous pieces of it as opposed to running the whole playbook. You can do this with Ansible labels. Utilizing labels to execute or avoid chosen undertakings is a two-venture process:

Add labels to your undertakings, either exclusively or with label legacy from a block, play, role, or import.

Select or skip labels when you run your playbook.