author | Luke Hoersten <luke@hoersten.org> |
Fri, 01 May 2020 17:00:59 -0500 | |
changeset 1 | d3ef4e0b4baa |
parent 0 | 474ccafc2349 |
child 2 | 0556e208fbee |
permissions | -rw-r--r-- |
0
474ccafc2349
Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
1 |
--- |
474ccafc2349
Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
2 |
|
474ccafc2349
Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
3 |
- name: add node user |
474ccafc2349
Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
4 |
become: yes |
474ccafc2349
Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
5 |
user: name="{{node_install_user}}" |
474ccafc2349
Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
6 |
|
474ccafc2349
Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
7 |
- name: unarchive node |
474ccafc2349
Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
8 |
become: yes |
474ccafc2349
Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
9 |
unarchive: |
1
d3ef4e0b4baa
Expose lnd and btcd to listening public ip.
Luke Hoersten <luke@hoersten.org>
parents:
0
diff
changeset
|
10 |
remote_src: yes |
d3ef4e0b4baa
Expose lnd and btcd to listening public ip.
Luke Hoersten <luke@hoersten.org>
parents:
0
diff
changeset
|
11 |
src: "{{node_install_url}}" |
0
474ccafc2349
Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
12 |
dest: "/tmp" |
474ccafc2349
Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
13 |
creates: "/tmp/{{node_install_tar_name}}/" |
474ccafc2349
Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
14 |
|
474ccafc2349
Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
15 |
- name: install node |
474ccafc2349
Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
16 |
become: yes |
474ccafc2349
Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
17 |
shell: "install -m 0755 -o {{node_install_user}} -g {{node_install_user}} -t /usr/local/bin /tmp/{{node_install_tar_name}}/*" |
474ccafc2349
Initial commit of btcd and lnd roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
18 |
changed_when: false |