# How to ignore invalid tag name instead of throwing a error

**URL:** <https://forum.ansible.com/t/how-to-ignore-invalid-tag-name-instead-of-throwing-a-error/19753>\
**Category:** Ansible Project\
**Created:** [November 12, 2015, 10:42pm UTC](https://forum.ansible.com/t/how-to-ignore-invalid-tag-name-instead-of-throwing-a-error/19753 "2015-11-12T22:42:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Yi](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kevin\_Yi](https://forum.ansible.com/u/Kevin_Yi)\
**Post date:** [November 12, 2015, 10:42pm UTC](https://forum.ansible.com/t/how-to-ignore-invalid-tag-name-instead-of-throwing-a-error/19753/1 "2015-11-12T22:42:07Z")

</div>

Hi ,

I got the requirement to ignore the invalid tag name when execute a playbook

eg . ansible-playbook -t tag1 test.yml

and I will get below error and fail the playbook

ERROR: tag(s) not found in playbook: tag1.

What I expect is doing nothing if tag name is not exist just like --skip-tags all

PLAY [localhost] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

If anyway I can do that ?

Thanks
