Yes, the tasks can be filtered using the Ansible tags. This can be done in the following ways:
1) You can use –tags option or –skip-tags option on the command-line tool.
2) You can use TAGS_RUN and TAGS_SKIP options in the Ansible configuration settings.