dendrite/aws-s3-backup/tasks/main.yaml
changeset 163 40b78af86337
parent 159 05d0cf32e077
equal deleted inserted replaced
162:a7a64ed07204 163:40b78af86337
       
     1 ---
       
     2 
       
     3 - name: create writefreely s3 backup shell script
       
     4   become: yes
       
     5   copy:
       
     6     src: "writefreely-s3-backup.sh"
       
     7     dest: "/usr/local/bin/writefreely-s3-backup.sh"
       
     8     mode: "0755"
       
     9 
       
    10 - name: create s3 backup lifesycle json file
       
    11   become: yes
       
    12   copy:
       
    13     src: "writefreely-s3-backup-lifecycle.json"
       
    14     dest: "/usr/local/share/writefreely-s3-backup-lifecycle.json"
       
    15     mode: "0755"
       
    16 
       
    17 - name: configure writefreely s3 backup systemd service
       
    18   become: yes
       
    19   template:
       
    20     src: "[email protected]"
       
    21     dest: "/lib/systemd/system/writefreely-s3-backup@{{writefreely_s3_backup_bucket}}.service"
       
    22   notify: reload s3 backup service
       
    23 
       
    24 - name: ensure writefreely s3 backup service is started
       
    25   become: yes
       
    26   systemd: name="writefreely-s3-backup@{{writefreely_s3_backup_bucket}}.service" enabled="yes"