---

- name: Setup nodejs repo sources
  apt_repository:
    repo: deb https://deb.nodesource.com/node_9.x xenial main

- name: Install nodejs
  apt:
    name: nodejs
    state: latest

- name: Install js packages
  npm:
    name: "{{item}}"
    global: yes
    state: latest
  with_items:
    - stylelint
    - eslint-cli
    - livedown

---

- name: Setup nodejs repo sources
  apt_repository:
    repo: deb https://deb.nodesource.com/node_9.x xenial main

- name: Install nodejs
  apt:
    name: nodejs
    state: latest

- name: Install js packages
  npm:
    name: "{{item}}"
    global: yes
    state: present
  with_items:
    - stylelint
    - eslint-cli
    - livedown

Use `present` rather than `latest` for npm utils
Use `present` rather than `latest` for npm utils

Any version for these works for me, really. If I need something more
specific, I'll pin it.
