pleroma/aws-s3-backup/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Mon, 08 Aug 2022 16:12:44 -0500
changeset 182 b4ce6f1f15b7
parent 157 5e5c9e605142
permissions -rw-r--r--
Version updates

---

- name: create s3 backup shell script
  become: yes
  copy:
    src: "pleroma-s3-backup.sh"
    dest: "/usr/local/bin/pleroma-s3-backup.sh"
    mode: "0755"

- name: create s3 backup lifesycle json file
  become: yes
  copy:
    src: "pleroma-s3-backup-lifecycle.json"
    dest: "/usr/local/share/pleroma-s3-backup-lifecycle.json"
    mode: "0755"

- name: configure s3 backup systemd service
  become: yes
  copy:
    src: "[email protected]"
    dest: "/lib/systemd/system/[email protected]"
    mode: "0644"
  notify: restart pleroma instance s3 backup

- name: ensure s3 backup is enabled
  become: yes
  systemd: name="pleroma-s3-backup@{{pleroma_instance}}.service" enabled="yes"