pleroma-otp/tasks/s3-backup.yaml
changeset 93 976670b2ca63
parent 90 08764af85bda
equal deleted inserted replaced
92:d4924111ce28 93:976670b2ca63
       
     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: "0644"
       
    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"