I have the following hosts file.
(skytap_env)[jenkins@rts-loadgen02 dxansible]$ cat hosts_file
[router_hosts]
rts-rr[201:203].slsin.dataxu.net
rts-rr[301:303].slsin.dataxu.net
The following --limit works correctly.
(skytap_env)[jenkins@rts-loadgen02 dxansible]$ ansible-playbook -v -i
hosts_file realtime_system_router_matcher_hosts_stop.yml --list-hosts
--limit router_hosts
playbook: realtime_system_router_matcher_hosts_stop.yml
play #1 (router_hosts:matcher_hosts): host count=6
rts-rr201.slsin.dataxu.net
rts-rr202.slsin.dataxu.net
rts-rr203.slsin.dataxu.net
rts-rr301.slsin.dataxu.net
rts-rr302.slsin.dataxu.net
rts-rr303.slsin.dataxu.net
play #2 (router_hosts): host count=6
rts-rr201.slsin.dataxu.net
rts-rr202.slsin.dataxu.net
rts-rr203.slsin.dataxu.net
rts-rr301.slsin.dataxu.net
rts-rr302.slsin.dataxu.net
rts-rr303.slsin.dataxu.net
play #3 (matcher_hosts): host count=0
I'm expecting the following --limit to also work.
(skytap_env)[jenkins@rts-loadgen02 dxansible]$ ansible-playbook -v -i
hosts_file realtime_system_router_matcher_hosts_stop.yml --list-hosts
--limit rts-rr[201:203].slsin.dataxu.net
ERROR: provided hosts list is empty
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/bc0eb91a-7b60-478a-b727-fd408437bfe6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.