lnd-channel-s3-backup/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Mon, 07 Oct 2024 23:30:59 -0500
changeset 36 8de33340cca9
parent 19 5c8335b57353
permissions -rw-r--r--
Added hacks to fix lnd bitcoind 28 bug.

---

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