src.nth.io/

summaryrefslogtreecommitdiff
path: root/node/install
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-04-27 11:17:52 -0500
committerLuke Hoersten <[email protected]>2020-04-27 11:17:52 -0500
commit99575d0d007feb9ba97109be94e7ee5230bb40ce (patch)
treededb43d697647753ee76a554c5d8edcbb0731e87 /node/install
Initial commit of btcd and lnd roles.
Diffstat (limited to 'node/install')
-rw-r--r--node/install/tasks/main.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/node/install/tasks/main.yaml b/node/install/tasks/main.yaml
new file mode 100644
index 0000000..22059f6
--- /dev/null
+++ b/node/install/tasks/main.yaml
@@ -0,0 +1,24 @@
+---
+
+- name: add node user
+ become: yes
+ user: name="{{node_install_user}}"
+
+- name: download node
+ become: yes
+ get_url:
+ url: "{{node_install_url}}"
+ dest: "/tmp/{{node_install_tar}}"
+
+- name: unarchive node
+ become: yes
+ unarchive:
+ remote_src: "yes"
+ src: "/tmp/{{node_install_tar}}"
+ dest: "/tmp"
+ creates: "/tmp/{{node_install_tar_name}}/"
+
+- name: install node
+ become: yes
+ shell: "install -m 0755 -o {{node_install_user}} -g {{node_install_user}} -t /usr/local/bin /tmp/{{node_install_tar_name}}/*"
+ changed_when: false