node/install/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sun, 03 May 2020 15:55:50 -0500
changeset 2 0556e208fbee
parent 1 d3ef4e0b4baa
permissions -rw-r--r--
Made btcd and lnd arch changeable.

---

- 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
  copy:
    src: "/tmp/{{node_install_tar_name}}/"
    dest: "/usr/local/bin/"
    remote_src: yes
    owner: "root"
    group: "root"
    mode: "0755"