I want to run a playbook with some group_vars on some Amazon EC2 instances 
and on some local machines.  Is there some way that I can group EC2 
instances (by tag) and local machines under the same inventory group?

For instance:

inventory/dev.yml
```
macbookpro ansible_ssh_host=1.2.3.4

[dev]
macbookpro         # some local machine (not necessarily localhost)
tag_branch_dev   # EC2 tag
```

playbooks/setup-dev.yml
```
- hosts: dev
  roles:
    - role: users
      become: true
```

-- 
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/c6dc342b-cec4-4a7a-8f38-f804a05186ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to