pleroma/aws-s3-backup/tasks/main.yaml
changeset 103 78a072bbf3c1
parent 93 976670b2ca63
child 157 5e5c9e605142
equal deleted inserted replaced
102:5afa8c28e689 103:78a072bbf3c1
       
     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"