Is it possible to run playbook with wildcard tags

926 views
Skip to first unread message

张斌

unread,
Jan 31, 2016, 12:05:34 PM1/31/16
to Ansible Project

  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

Brian Coca

unread,
Feb 1, 2016, 10:47:11 AM2/1/16
to Ansible Project
no
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/8d354bc3-fb2a-4d11-90ac-e58bc01d0f16%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Brian Coca

Alex Leonhardt

unread,
Feb 1, 2016, 11:44:41 AM2/1/16
to ansible...@googlegroups.com

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

Alex

sam liu

unread,
Feb 2, 2016, 8:58:10 AM2/2/16
to Ansible Project
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,张斌写道:

sam liu

unread,
Feb 2, 2016, 8:58:12 AM2/2/16
to Ansible Project
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,张斌写道:
Reply all
Reply to author
Forward
0 new messages