We split our ec2 environment into separate vpcs and until now, have been deploying to each via our own laptops. (Limited to credentials root users, 2)
I ran into an issue today where I did the following:
ansible-playbook -i inventories/staging myawesomeplaybook.yml
*Runs playbook on staging instances as expected
ansible-playbook -i inventories/production myawesomeplaybook.yml
!Runs playbook on staging instances when should actually be production
Clearing out the ec2 cache resulted in the correct behavior, but this seems like a very dangerous characteristic. Is there an idiomatic way of handling differing staging from production inventories in EC2?