If we have a large PLAYBOOK, it MAY become useful to be able to run only a specific part of it rather than running EVERYTHING in the whole Ansible playbook, Ansible supports a 'tags:' attribute for this.
When we execute a playbook, we can filter tasks based on 'tags' in two ways:
On the command line, with the --tags or --skip-tags options
In Ansible configuration settings, with the TAGS_RUN and TAGS_SKIP options
We can apply the same tag to more than one TASK and do task inheritance as well.