# Is it possible to run playbook with wildcard tags

**URL:** <https://forum.ansible.com/t/is-it-possible-to-run-playbook-with-wildcard-tags/20393>\
**Category:** Ansible Project\
**Created:** [January 31, 2016, 5:05pm UTC](https://forum.ansible.com/t/is-it-possible-to-run-playbook-with-wildcard-tags/20393 "2016-01-31T17:05:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user46](https://avatars.discourse-cdn.com/v4/letter/u/c37758/32.png) [@user46](https://forum.ansible.com/u/user46)\
**Post date:** [January 31, 2016, 5:05pm UTC](https://forum.ansible.com/t/is-it-possible-to-run-playbook-with-wildcard-tags/20393/1 "2016-01-31T17:05:33Z")

</div>

Is it possible to run playbook with wildcard tags ?

for example:

ansible-playbook … playbook.yml --tags db\_\*

which expects db\_\* matches db\_install, db\_configure etc.

thanks

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 1, 2016, 3:47pm UTC](https://forum.ansible.com/t/is-it-possible-to-run-playbook-with-wildcard-tags/20393/2 "2016-02-01T15:47:04Z")

</div>

no

---

<div class="post-metadata">

**Author:** ![Alex\_Leonhardt](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@Alex\_Leonhardt](https://forum.ansible.com/u/Alex_Leonhardt)\
**Post date:** [February 1, 2016, 4:44pm UTC](https://forum.ansible.com/t/is-it-possible-to-run-playbook-with-wildcard-tags/20393/3 "2016-02-01T16:44:28Z")

</div>

I guess there could be a somewhat more helpful answer to this? Maybe it’s worth a feature request?

Alex

---

<div class="post-metadata">

**Author:** ![sam\_liu](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@sam\_liu](https://forum.ansible.com/u/sam_liu)\
**Post date:** [February 2, 2016, 1:26pm UTC](https://forum.ansible.com/t/is-it-possible-to-run-playbook-with-wildcard-tags/20393/4 "2016-02-02T13:26:18Z")

</div>

The tags parameter will executing as your ordered list  
but if you want to use wildcard tags will cause some unpredictable problem, it will more like black box, you can not control ansible how to storing the tag list.  
If you really want to do it, try use xargs command.

在 2016年2月1日星期一 UTC+8上午1:05:34，张斌写道：

---

<div class="post-metadata">

**Author:** ![sam\_liu](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@sam\_liu](https://forum.ansible.com/u/sam_liu)\
**Post date:** [February 2, 2016, 1:28pm UTC](https://forum.ansible.com/t/is-it-possible-to-run-playbook-with-wildcard-tags/20393/5 "2016-02-02T13:28:43Z")

</div>

The tags parameter will executing as your ordered list  
but if you want to use wildcard tags will cause some unpredictable problem, it will more like black box, you can not control ansible how to storing the tag list.  
If you really want to do it, try use xargs command.

在 2016年2月1日星期一 UTC+8上午1:05:34，张斌写道：
