node/install/tasks/main.yaml
changeset 5 5873b7e583d7
parent 4 9934a00b9e97
child 6 e0672e50e2c5
equal deleted inserted replaced
4:9934a00b9e97 5:5873b7e583d7
     1 ---
       
     2 
       
     3 - name: add node user
       
     4   become: yes
       
     5   user: name="{{node_install_user}}"
       
     6 
       
     7 - name: unarchive node
       
     8   become: yes
       
     9   unarchive:
       
    10     remote_src: yes
       
    11     src: "{{node_install_url}}"
       
    12     dest: "/tmp"
       
    13     creates: "/tmp/{{node_install_tar_name}}/"
       
    14 
       
    15 - name: install node
       
    16   become: yes
       
    17   copy:
       
    18     src: "/tmp/{{node_install_tar_name}}/"
       
    19     dest: "/usr/local/bin/"
       
    20     remote_src: yes
       
    21     owner: "root"
       
    22     group: "root"
       
    23     mode: "0755"