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"