ansible <host-pattern> expansion is not working -> ansible servers[:24] -vv -i inventory_file -m shell -a "echo yes"

34 views
Skip to first unread message

v

unread,
Jan 22, 2016, 9:23:03 PM1/22/16
to Ansible Project
Hi,

ansible <host-pattern> expansion is not working. Is this because it has to do double expansion in inventory? Could it possibly be a bug? I am doing something wrong?


ansible --version
ansible 1.9.2
  configured module search path = None

invetory_file:
[servers]
db-[0001:0048].ansbile.com



The following does not work:
$ ansible servers[:24] -vv  -i inventory_file  -m shell -a "echo yes"
No hosts matched


Thanks
Reply all
Reply to author
Forward
0 new messages