Hi,
Over the past few months using Ansible, I’ve accumulated a handy bunch of playbooks which create different varieties of servers. The top-level directory looks like this :
modular-role-based-playbooks
– [-rw-r–r–] create-bare-micro-instance-amazon.yml
– [-rw-r–r–] create-captcha-server.yml
– [-rw-r–r–] create-sandbox-server.yml
– [-rw-r–r–] create-support.yml
– [-rw-r–r–] create-test-machine-for-interview.yml
– [-rw-r–r–] create-web.yml
– [-rw-r–r–] create-webdriver.yml
– [-rw-r–r–] create-worker.yml
– [drwxr-xr-x] envs
– [drwxr-xr-x] group_vars
– [lrwxr-xr-x] inventories → …/inventories
– [drwxr-xr-x] make-playbook-with-roles
– [drwxr-xr-x] roles
`-- [drwxr-xr-x] templates
How must I proceed so that with minimum redundancy I can create the same types of servers inside VPC as well?
I understand that the ec2 module requires extra parameters passed when the instance is to be created inside VPC, so is it possible to have a conditional that disables/enables these parameters?
Any help would be appreciated.