equal
deleted
inserted
replaced
|
1 --- |
|
2 |
|
3 # https://gist.github.com/alexbosworth/2c5e185aedbdac45a03655b709e255a3 |
|
4 |
|
5 - name: install lnd-channel s3 backup apt packages |
|
6 become: yes |
|
7 apt: name="inotify-tools" |
|
8 |
|
9 - name: create lnd-channel s3 backup shell script |
|
10 become: yes |
|
11 copy: |
|
12 src: "lnd-channel-s3-backup.sh" |
|
13 dest: "/usr/local/bin/lnd-channel-s3-backup.sh" |
|
14 mode: "0755" |
|
15 |
|
16 - name: configure lnd-channel s3 backup systemd service |
|
17 become: yes |
|
18 template: |
|
19 src: "[email protected]" |
|
20 dest: "/lib/systemd/system/lnd-channel-s3-backup@{{lnd_channel_s3_backup_bucket}}.service" |
|
21 notify: reload s3 backup service |
|
22 |
|
23 - name: ensure lnd-channel s3 backup service is started |
|
24 become: yes |
|
25 systemd: name="lnd-channel-s3-backup@{{lnd_channel_s3_backup_bucket}}.service" enabled="yes" |