...
File | Contents | |
---|---|---|
build_ami.yml | Outline of the role | |
group_vars/ruby_ami | ami metadata (instance type, disk size, aws name and tags) | |
group_vars/ruby_image_ami | ami metadata | |
roles/dzi/vars/role_vars | Current vips version | |
roles/ruby/vars/role_vars | Current ruby version | |
roles/imagemagick/vars/role_vars | Current imagemagick version |
Example invocations
(we use the production key private-key here, as it will end up kind of permanently allowing ssh access to the machine, and we don’t want staging/test key to have access to production machines)
ansible-playook --ask-vault-pass build_ami.yml --private-key=~/.ssh/chf_prod.pem --extra-vars "build=ruby_ami"
ansible-playook --ask-vault-pass build_ami.yml --private-key=~/.ssh/chf_prod.pem --extra-vars "build=ruby_image_ami"
ansible-playook --ask-vault-pass build_ami.yml --private-key=~/.ssh/chf_prod.pem --extra-vars "build=image_ami"
...