Let me assume that we have a inventory file called hosts:

hosts
[openstack]
keystonec
sproxyc
snode01c
snode02c
snode03c
keystone
sproxy
snode01
snode02
snode03

and a dev inventory file

[dev]
keystone
sproxy
snode01
snode02
snode03


I have a test.yml file

---
  - hosts: openstack:&dev
    tasks:
      - name: ping each host in the dev
        action:  ping


When I play the book as blow

ansible-playbook -i ./inventory   test.yml

It found no matched the hosts.

If I put [dev] definition in the same file as [openstack], it works well. 

anyone can help?

regards
Henry

-- 
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/53eeb212-8c98-414a-8cbc-11a1f0941c57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to