---

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

- name: Install nodejs
  apt:
    name: nodejs
    update_cache: yes
    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
    update_cache: yes
    state: latest

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

Remove argument that's already the default
Remove argument that's already the default
