node/install/tasks/main.yaml
changeset 0 474ccafc2349
child 1 d3ef4e0b4baa
equal deleted inserted replaced
-1:000000000000 0:474ccafc2349
       
     1 ---
       
     2 
       
     3 - name: add node user
       
     4   become: yes
       
     5   user: name="{{node_install_user}}"
       
     6 
       
     7 - name: download node
       
     8   become: yes
       
     9   get_url:
       
    10     url: "{{node_install_url}}"
       
    11     dest: "/tmp/{{node_install_tar}}"
       
    12 
       
    13 - name: unarchive node
       
    14   become: yes
       
    15   unarchive:
       
    16     remote_src: "yes"
       
    17     src: "/tmp/{{node_install_tar}}"
       
    18     dest: "/tmp"
       
    19     creates: "/tmp/{{node_install_tar_name}}/"
       
    20 
       
    21 - name: install node
       
    22   become: yes
       
    23   shell: "install -m 0755 -o {{node_install_user}} -g {{node_install_user}} -t /usr/local/bin /tmp/{{node_install_tar_name}}/*"
       
    24   changed_when: false