Is this the correct behavior of using --limit:
{
$ cat test_inv
[localhost]
localhost
[foobar]
localhost
$ cat test.yml
---
- hosts:
- localhost
connection: local
gather_facts: no
tasks:
- name: localhost
debug: msg=localhost
- hosts:
- foobar
connection: local
gather_facts: no
tasks:
- name: foobar
debug: msg=foobar
$ ansible-playbook -i test_inv test.yml --list-hosts --limit foobar
playbook: test.yml
play #1 (localhost): host count=1
localhost
play #2 (foobar): host count=1
localhost
}
I thought that by using "--limit foobar" that it would only match the
foobar host group? Even if "--limit" can only work on one host section in a
play isn't this still a bug or something?
BTW my ansible version is 1.8
Thanks
--
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/580ecdd7-4145-4b4b-a979-085a4527a29e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.