Expected number of hosts

54 views
Skip to first unread message

Vaclav Adamec

unread,
Jan 28, 2015, 3:27:29 AM1/28/15
to ansible...@googlegroups.com
Hi,
 is there any option to set validation of host count ? For example if we limit playbook to be run only on servers with specific fact but some servers not populate redis cache with up2date version of facts (or failed) I need to be sure that this issue will be catched before run.

I really appreciate any help you can provide

Vasek

Brian Coca

unread,
Jan 28, 2015, 8:39:02 AM1/28/15
to ansible...@googlegroups.com
I think you want the --list-hosts command linen option, but inside the
play you can check the length of the play_hosts variable



--
Brian Coca

Vaclav Adamec

unread,
Jan 30, 2015, 1:29:41 AM1/30/15
to ansible...@googlegroups.com
Thanks a lot, play_hosts var is what I was looking for

Vasek


Dne středa 28. ledna 2015 14:39:02 UTC+1 Brian Coca napsal(a):
Reply all
Reply to author
Forward
0 new messages