Adding tags with the tags keyword
You can add tags to a single task or include. You can also add tags to multiple tasks by defining them at the level of a block, play, role, or import. The keywordtagsaddresses all these use cases. Thetagskeyword always defines tags and adds them to tasks; it does not select or skip tasks for execution. You can only select or skip tasks based on tags at the command line when you run a playbook. SeeSelecting or skipping tags when you run a playbookfor more details.