im creating my hosts file with
for f in $(seq 1 10); do echo "host$f" >> hosts; done
and then try to list hosts with
ansible all -i hosts --limit ~host1 --list-hosts
with this result
hosts (10):
host1
host2
host3
host4
host5
host6
host7
host8
host9
host10
Also non regex limit reutnrs
ansible all -i hosts --limit host4 --list-hosts
hosts (10):
host1
host2
host3
host4
host5
host6
host7
host8
host9
host10
I've tried googling but nothing came up. Has there been any changes ?
ansible 2.0.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = /usr/share/ansible
and i've installed itwith `pip install --user ansible --upgrade`.
Cheers,
Mike
--
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/81a1731f-957c-48ed-8aa8-19aec8820926%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.