Looks good. I don't have much experience with multiple AWS accounts. I think you can create 20 directories for independent inventory, for example: 'inventory/acc01/', 'inventory/acc02/', e.t.c. Then copy dynamic inventory script into this directories. And you can create static inventory files in this directories.
On Wednesday, January 4, 2017 at 11:51:27 PM UTC+5, [email protected] wrote: > > How do i setup Ansible server to manage multiple Aws accounts using > dynamic inventory, > so, i have 20 Aws accounts and want to manage all those from single server > (VPC's in all accounts are peered with each other), > So i have Installed Ansible and setup boto profile one for each account, > by creating 20 profiles (i.e. 20 access and secret access keys) stored in > boto credentials: ~/.aws/credentials. > Is it the right way to manage multiple accounts > i am using AWS_PROFILE to specify boto profile while running playbooks. > -- 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/324b7661-f37c-4744-b8af-a6df9282b0b8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
