Hey, No idea what the best practice would be, but you could customize the ec2.py script and change the following line: https://github.com/ansible/ansible/blob/devel/contrib/inventory/ec2.py#L223 You could hardcode it or make it dynamic.
So you could have ec2_account1.py with ec2_account1.ini, ec2_account2.py with ec2_account2.ini, etc. Regards, Simon On Thursday, December 22, 2016 at 4:34:33 PM UTC+1, [email protected] wrote: > > Hi, > We have multiple aws accounts and want to use ansible as a > configuration management system for them, so how do we proceed, to manage > multiple aws accounts with one ansible server. > 1) we have an account that is peered to all other accounts, so i want to > install ansible there. > 2) but how do i proceed with inventory, how to differentiate between > different aws accounts, because ec2.py would act as dynamic inventory for > one account , how to have different envionments, and how to run playbooks > on different accounts and vpcs, should we create a custom inventory? > -- 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/35f70214-6a73-4d33-891a-ef6d770b9a51%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
