No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nodered.yml 799B

12345678910111213141516171819202122
  1. - name: Create temporary Node-Red directory
  2. file: state=directory path=/root/nodered
  3. - name: Download Node-Red install script
  4. get_url:
  5. url="https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered"
  6. dest=/root/nodered/update-nodejs-and-nodered
  7. owner=root
  8. mode=0755
  9. - name: Run Node-Red install script
  10. shell: /root/nodered/update-nodejs-and-nodered --confirm-root --confirm-install --skip-pi --restart --update-nodes
  11. - name: Enable Apache wstunnel module
  12. command: a2enmod proxy_wstunnel creates=/etc/apache2/mods-enabled/proxy_wstunnel.load
  13. notify: restart apache
  14. - name: Register new Node-Red service
  15. systemd: name=nodered daemon_reload=yes enabled=yes
  16. - name: Start new Node-Red instance
  17. service: name=nodered state=started