pleroma/aws-s3-backup/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Wed, 01 Jul 2020 12:16:48 -0500
changeset 103 78a072bbf3c1
parent 93 pleroma-otp/tasks/s3-backup.yaml@976670b2ca63
child 157 5e5c9e605142
permissions -rw-r--r--
Split out aws s3 and otp roles.

---

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