Fixed systemd timer states.
--- a/roles/pleroma-otp/files/[email protected] Mon Jan 20 13:18:18 2020 -0600
+++ b/roles/pleroma-otp/files/[email protected] Mon Jan 20 13:54:14 2020 -0600
@@ -3,7 +3,7 @@
[Service]
Type=oneshot
-ExecStart=/usr/local/bin/pleroma-prepare-backup.sh %i
+ExecStart=/usr/local/bin/pleroma-s3-backup.sh %i
[Install]
WantedBy=aws-s3-backup.target
--- a/roles/pleroma-otp/handlers/main.yaml Mon Jan 20 13:18:18 2020 -0600
+++ b/roles/pleroma-otp/handlers/main.yaml Mon Jan 20 13:54:14 2020 -0600
@@ -6,4 +6,4 @@
- name: restart pleroma instance s3 backup
become: yes
- systemd: name="pleroma-s3-backup@{{pleroma_instance}}.service" state="restarted" daemon_reload="yes"
+ systemd: name="pleroma-s3-backup@{{pleroma_instance}}.service" enabled="yes" daemon_reload="yes"
--- a/roles/pleroma-otp/tasks/main.yaml Mon Jan 20 13:18:18 2020 -0600
+++ b/roles/pleroma-otp/tasks/main.yaml Mon Jan 20 13:54:14 2020 -0600
@@ -76,7 +76,7 @@
- "/tmp/release/"
when: pleroma_cleanup_tmp
-- import_tasks: s3-backup.yml
+- import_tasks: s3-backup.yaml
when: pleroma_s3_backup_enabled
- name: configure pleroma systemd service
--- a/roles/pleroma-otp/tasks/s3-backup.yaml Mon Jan 20 13:18:18 2020 -0600
+++ b/roles/pleroma-otp/tasks/s3-backup.yaml Mon Jan 20 13:54:14 2020 -0600
@@ -17,4 +17,4 @@
- name: ensure s3 backup is enabled
become: yes
- systemd: name="pleroma-s3-backup@{{pleroma_instance}}.service" enabled="yes" state="started"
+ systemd: name="pleroma-s3-backup@{{pleroma_instance}}.service" enabled="yes"