Fixed systemd timer states.
authorLuke Hoersten <luke@hoersten.org>
Mon, 20 Jan 2020 13:54:14 -0600
changeset 89 4e1cf6df4ac9
parent 88 63efc98132f7
child 90 08764af85bda
Fixed systemd timer states.
roles/pleroma-otp/files/[email protected]
roles/pleroma-otp/handlers/main.yaml
roles/pleroma-otp/tasks/main.yaml
roles/pleroma-otp/tasks/s3-backup.yaml
--- 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="[email protected]{{pleroma_instance}}.service" state="restarted" daemon_reload="yes"
+  systemd: name="[email protected]{{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="[email protected]{{pleroma_instance}}.service" enabled="yes" state="started"
+  systemd: name="[email protected]{{pleroma_instance}}.service" enabled="yes"