暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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