# roles and tags, one work the other one not

**URL:** <https://forum.ansible.com/t/roles-and-tags-one-work-the-other-one-not/14079>\
**Category:** Ansible Project\
**Created:** [December 5, 2013, 9:46pm UTC](https://forum.ansible.com/t/roles-and-tags-one-work-the-other-one-not/14079 "2013-12-05T21:46:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yoann\_DAVID](https://avatars.discourse-cdn.com/v4/letter/y/85e7bf/32.png) [@Yoann\_DAVID](https://forum.ansible.com/u/Yoann_DAVID)\
**Post date:** [December 5, 2013, 9:46pm UTC](https://forum.ansible.com/t/roles-and-tags-one-work-the-other-one-not/14079/1 "2013-12-05T21:46:32Z")

</div>

I don’t understand I have 2 roles, this 2 roles are tagged, one work, this one :

> - hosts: webservers  
> sudo: yes  
> roles:
> - { role: webserver, tags: [‘webserver’]}

And the other one not :

> - hosts: dbservers  
> sudo: yes  
> roles:
> - { role: dbserver, tags: [‘dbserver’]}

When I ran this :

> ansible-playbook playbook.yml -i hosts -t dbserver

(I also try the other syntax --tags)

I’ve gto the following error :

> ERROR: tag(s) not found in playbook: dbserver. possible values: adminer,common,databases,mysql,user,vhosts,webserver

As you can see the webserver tag is found, also the mysql/databases one which are in dbserver role so why my dbserver tag is not ?

Except this problem the role works fine

Thanks for your suggestions
