roles/pleroma-otp/tasks/s3-backup.yaml
author Luke Hoersten <luke@hoersten.org>
Mon, 20 Jan 2020 14:19:05 -0600
changeset 91 d1406d67c758
parent 90 08764af85bda
permissions -rw-r--r--
Removed pleroma src based install.

---

- 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: 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"