Skip to content

Instantly share code, notes, and snippets.

@joeartsea
Last active December 26, 2017 06:37
Show Gist options
  • Save joeartsea/4b0478baec83b17d44714560b3b8777f to your computer and use it in GitHub Desktop.
Save joeartsea/4b0478baec83b17d44714560b3b8777f to your computer and use it in GitHub Desktop.
node-red playbook
- hosts: all
sudo: yes
tasks:
- name: setup nodejs8.x
shell: curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
args:
creates: /usr/bin/node
- name: installing latest version of node.js
apt:
name: nodejs
state: latest
- name: installing latest version of node-red
npm:
name: node-red
global: yes
state: latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment