lnd-channel-s3-backup/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Fri, 15 Sep 2023 22:45:51 -0500
changeset 31 562b76293a66
parent 19 5c8335b57353
permissions -rw-r--r--
Moved lnurld from my general ansible roles repo to the btc specific repo.

---

# https://gist.github.com/alexbosworth/2c5e185aedbdac45a03655b709e255a3

- name: install lnd-channel s3 backup apt packages
  become: yes
  apt: name="inotify-tools"

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

- name: configure lnd-channel s3 backup systemd service
  become: yes
  template:
    src: "[email protected]"
    dest: "/lib/systemd/system/lnd-channel-s3-backup@{{lnd_channel_s3_backup_bucket}}.service"
  notify: reload s3 backup service

- name: ensure lnd-channel s3 backup service is started
  become: yes
  systemd: name="lnd-channel-s3-backup@{{lnd_channel_s3_backup_bucket}}.service" enabled="yes"