diff options
| author | Luke Hoersten <[email protected]> | 2026-04-05 15:50:31 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-04-05 15:50:31 -0500 |
| commit | e925453eab7024b5f169bbeef6a281c9952b1d30 (patch) | |
| tree | af53745934dd462930c33a0f38530752d8e1c4fc /git/aws-s3-backup/tasks | |
| parent | 55e55db9154e80aec134eef17d9d883d0213d4c4 (diff) | |
Add git/aws-s3-backup and git/web (cgit) roles
Diffstat (limited to 'git/aws-s3-backup/tasks')
| -rw-r--r-- | git/aws-s3-backup/tasks/main.yaml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/git/aws-s3-backup/tasks/main.yaml b/git/aws-s3-backup/tasks/main.yaml new file mode 100644 index 0000000..85c3d17 --- /dev/null +++ b/git/aws-s3-backup/tasks/main.yaml @@ -0,0 +1,26 @@ +--- + +- name: create git s3 backup shell script + become: yes + copy: + src: "git-s3-backup.sh" + dest: "/usr/local/bin/git-s3-backup.sh" + mode: "0755" + +- name: create s3 backup lifecycle json file + become: yes + copy: + src: "git-s3-backup-lifecycle.json" + dest: "/usr/local/share/git-s3-backup-lifecycle.json" + mode: "0644" + +- name: configure git s3 backup systemd service + become: yes + template: + src: "[email protected]" + dest: "/lib/systemd/system/git-s3-backup@{{git_s3_backup_bucket}}.service" + notify: reload git s3 backup service + +- name: ensure git s3 backup service is started + become: yes + systemd: name="git-s3-backup@{{git_s3_backup_bucket}}.service" enabled="yes" state="started" |
