Expected number of hosts

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

I think you want the --list-hosts command linen option, but inside the
play you can check the length of the play_hosts variable

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):