12345678910111213141516171819202122 |
- - name: Create temporary Node-Red directory
- file: state=directory path=/root/nodered
-
- - name: Download Node-Red install script
- get_url:
- url="https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered"
- dest=/root/nodered/update-nodejs-and-nodered
- owner=root
- mode=0755
-
- - name: Run Node-Red install script
- shell: /root/nodered/update-nodejs-and-nodered --confirm-root --confirm-install --skip-pi --restart --update-nodes
-
- - name: Enable Apache wstunnel module
- command: a2enmod proxy_wstunnel creates=/etc/apache2/mods-enabled/proxy_wstunnel.load
- notify: restart apache
-
- - name: Register new Node-Red service
- systemd: name=nodered daemon_reload=yes enabled=yes
-
- - name: Start new Node-Red instance
- service: name=nodered state=started
|