# HG changeset patch # User Luke Hoersten # Date 1579550054 21600 # Node ID 4e1cf6df4ac9e2f0825e10d4e703a4e6fb525d52 # Parent 63efc98132f710da50e086580dd0570e42fc98b8 Fixed systemd timer states. diff -r 63efc98132f7 -r 4e1cf6df4ac9 roles/pleroma-otp/files/pleroma-s3-backup@.service --- a/roles/pleroma-otp/files/pleroma-s3-backup@.service Mon Jan 20 13:18:18 2020 -0600 +++ b/roles/pleroma-otp/files/pleroma-s3-backup@.service 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 diff -r 63efc98132f7 -r 4e1cf6df4ac9 roles/pleroma-otp/handlers/main.yaml --- 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" diff -r 63efc98132f7 -r 4e1cf6df4ac9 roles/pleroma-otp/tasks/main.yaml --- 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 diff -r 63efc98132f7 -r 4e1cf6df4ac9 roles/pleroma-otp/tasks/s3-backup.yaml --- 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"