node/install/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sun, 10 May 2020 17:28:15 -0500
changeset 3 74f60cd1440b
parent 2 0556e208fbee
permissions -rw-r--r--
Config tweaks

---

- 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"