{"id":16594385,"url":"https://github.com/alecaddd/ansible-ec2-snapshot","last_synced_at":"2025-04-15T03:55:10.294Z","repository":{"id":75519203,"uuid":"96957057","full_name":"Alecaddd/ansible-ec2-snapshot","owner":"Alecaddd","description":"ec2 snapshot automation with Ansible and bash script","archived":false,"fork":false,"pushed_at":"2017-07-12T23:00:51.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T03:54:59.663Z","etag":null,"topics":["ansible","aws","ec2","snapshot","yml-files"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alecaddd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-12T02:32:49.000Z","updated_at":"2020-10-28T22:40:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"f10ab62a-53d4-481d-af02-275457e1b28d","html_url":"https://github.com/Alecaddd/ansible-ec2-snapshot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alecaddd%2Fansible-ec2-snapshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alecaddd%2Fansible-ec2-snapshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alecaddd%2Fansible-ec2-snapshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alecaddd%2Fansible-ec2-snapshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alecaddd","download_url":"https://codeload.github.com/Alecaddd/ansible-ec2-snapshot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249003953,"owners_count":21196794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","aws","ec2","snapshot","yml-files"],"created_at":"2024-10-11T23:46:05.543Z","updated_at":"2025-04-15T03:55:10.288Z","avatar_url":"https://github.com/Alecaddd.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-ec2-snapshot\nec2 snapshot automation with Ansible and bash script\n\n## Installation\n\n* Install Ansible on your AWS ec2 with `pip install ansible`\n* Be sure your ec2 is running the latest version of bob `pip install bobo3`\n* Clone this repo or upload these files in your user directory\n\n## Usage\n\nSetup your ec2 Variables in the `vars/ec2_env.yml` file\n\n```YAML\ndevice_name: # Instance Root Device (eg. /dev/sda)\nname: # Your EC2 Instance Name\nec2_url: # Instance Region URL (eg. https://ec2.us-east-1.amazonaws.com)\nec2_region: # Instance Region (eg. us-east-1)\n```\n\nUpdate the `ec2_snapshot.sh` script to set if you want to add or delete a snapshot\n\n```Shell\nansible-playbook playbook.yml -e\"add_snapshot=true del_snapshot=false\"\n```\n\nCreate a CRON job to execut the script automatically\n\n```\n# Run the script once a month\n0 0 1 * * ansible-ec2-snapshot/ec2_snapshot.sh\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecaddd%2Fansible-ec2-snapshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falecaddd%2Fansible-ec2-snapshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecaddd%2Fansible-ec2-snapshot/lists"}