arc/ansible
2021-02-03 15:22:38 +00:00
..
handlers Add handlers 2021-01-20 11:38:36 +01:00
host_vars forgot to git add :( 2021-02-03 15:22:38 +00:00
roles create datanommer timescale instance 2021-02-03 15:20:20 +00:00
secrets forgot to git add :( 2021-02-03 15:22:38 +00:00
ansible.cfg add ansible cfg 2021-01-19 11:33:50 +00:00
create_ec2.yml create datanommer timescale instance 2021-02-03 15:20:20 +00:00
datanommer.yml Add datagrepper-test to all the task on the datanommer playbook 2021-01-21 14:52:35 +01:00
delete_ec2.yml basic playbooks to create/delete ec2 instances 2021-01-18 12:22:52 +00:00
inventory create datanommer timescale instance 2021-02-03 15:20:20 +00:00
README create datanommer timescale instance 2021-02-03 15:20:20 +00:00
snapshot_ebs_volume.yml Add playbook/role to snapshot ebs volume 2021-01-25 13:00:16 +00:00

Dependencies:
  - awscli
  - python3-boto3


Before running any of the EC2 related playbooks, first create a vars file. Use host_vars/datanommer.yml as a reference.
When running the playbook add an extra var "-e initiative_name=<vars_file_name>"

i.e. ansible-playbook create_ec2.yml -e "initiative_name=datanommer"

When creating a snapshot a description must be passed as an extra var with the key `snap_description`
The description should mention why the snaphot was created.

i.e. ansible-playbook snapshot_ebs_volume.yml -e "initiative_name=datanommer" -e "snap_description=database partitioned by year"