roles/pleroma-otp/tasks/s3-backup.yaml
changeset 88 63efc98132f7
child 89 4e1cf6df4ac9
equal deleted inserted replaced
87:4f87097dd651 88:63efc98132f7
       
     1 ---
       
     2 
       
     3 - name: create s3 backup shell script
       
     4   become: yes
       
     5   copy:
       
     6     src: "pleroma-s3-backup.sh"
       
     7     dest: "/usr/local/bin/pleroma-s3-backup.sh"
       
     8     mode: "0755"
       
     9 
       
    10 - name: configure s3 backup systemd service
       
    11   become: yes
       
    12   copy:
       
    13     src: "[email protected]"
       
    14     dest: "/lib/systemd/system/[email protected]"
       
    15     mode: "0755"
       
    16   notify: restart pleroma instance s3 backup
       
    17 
       
    18 - name: ensure s3 backup is enabled
       
    19   become: yes
       
    20   systemd: name="pleroma-s3-backup@{{pleroma_instance}}.service" enabled="yes" state="started"