Yes, just put your static inventory and EC2 dynamic inventory script in one folder.
On Friday, May 20, 2016 at 5:45:13 PM UTC+5, Alex Braun wrote: > > 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/53cc6973-d2a0-430a-ada5-8f74de00a319%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
