diff -r 4d45841961e7 -r ebd8a21a0e62 minecraft/aws-s3-backup/tasks/main.yaml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/minecraft/aws-s3-backup/tasks/main.yaml Sat Jul 03 13:23:46 2021 -0500 @@ -0,0 +1,19 @@ +--- + +- name: create minecraft s3 backup shell script + become: yes + copy: + src: "minecraft-s3-backup.sh" + dest: "/usr/local/bin/minecraft-s3-backup.sh" + mode: "0755" + +- name: configure minecraft s3 backup systemd service + become: yes + template: + src: "minecraft-s3-backup@.service.j2" + dest: "/lib/systemd/system/minecraft-s3-backup@{{minecraft_s3_backup_bucket}}.service" + notify: reload s3 backup service + +- name: ensure minecraft s3 backup service is started + become: yes + systemd: name="minecraft-s3-backup@{{minecraft_s3_backup_bucket}}.service" enabled="yes"