author | Luke Hoersten <luke@hoersten.org> |
Mon, 07 Oct 2024 23:30:59 -0500 | |
changeset 36 | 8de33340cca9 |
parent 31 | 562b76293a66 |
permissions | -rw-r--r-- |
31
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
1 |
--- |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
2 |
|
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
3 |
- name: add lnurld user |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
4 |
become: yes |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
5 |
user: name="{{lnurld_user}}" shell="/bin/false" system="yes" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
6 |
|
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
7 |
- name: install lnurld bin |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
8 |
become: yes |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
9 |
get_url: |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
10 |
url: "{{lnurld_bin_url}}" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
11 |
dest: "/usr/local/bin/lnurld" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
12 |
mode: "0755" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
13 |
notify: restart lnurld service |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
14 |
|
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
15 |
- name: create lnurld data dir |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
16 |
become: yes |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
17 |
file: |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
18 |
path: "{{lnurld_data_dir}}" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
19 |
mode: "0710" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
20 |
owner: "{{lnurld_user}}" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
21 |
group: "{{lnurld_user}}" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
22 |
state: "directory" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
23 |
|
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
24 |
- name: create lnurld etc dir |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
25 |
become: yes |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
26 |
file: |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
27 |
path: "/etc/lnurld/" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
28 |
mode: "0755" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
29 |
state: "directory" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
30 |
|
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
31 |
- name: install lnurld config |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
32 |
become: yes |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
33 |
template: |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
34 |
src: "config.yaml.j2" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
35 |
dest: "/etc/lnurld/config.yaml" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
36 |
owner: "{{lnurld_user}}" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
37 |
group: "{{lnurld_user}}" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
38 |
mode: "0600" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
39 |
notify: restart lnurld service |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
40 |
|
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
41 |
- name: install lnurld systemd service |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
42 |
become: yes |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
43 |
template: |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
44 |
src: "lnurld.service.j2" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
45 |
dest: "/lib/systemd/system/lnurld.service" |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
46 |
notify: restart lnurld service |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
47 |
|
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
48 |
- name: ensure service is started |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
49 |
become: yes |
562b76293a66
Moved lnurld from my general ansible roles repo to the btc specific repo.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
50 |
systemd: name="lnurld.service" enabled="yes" state="started" |