node/install/tasks/main.yaml
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--
Expose lnd and btcd to listening public ip.

---

- name: add node user
  become: yes
  user: name="{{node_install_user}}"

- name: unarchive node
  become: yes
  unarchive:
    remote_src: yes
    src: "{{node_install_url}}"
    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