---
# configure base machine

- name: make sure apt list is updated
  apt: update_cache=yes

- name: make sure nginx is installed
  apt: name=nginx state=present

- name: make sure node ppa is available
  apt_repository: repo='ppa:chris-lea/node.js'

- name: make sure apt list is updated
  apt: update_cache=yes

- name: make sure nodejs is installed
  apt: name=nodejs state=present

---
# configure base machine

- name: make sure apt list is updated
  apt: update_cache=yes

- name: make sure nginx is installed
  apt: name=nginx state=present

- name: make sure node ppa is available
  apt_repository: repo='ppa:chris-lea/node.js'

- name: make sure apt list is updated
  apt: update_cache=yes

- name: make sure nodejs is installed
  apt: name=nodejs state=present

- name: make sure the latest npm is installed
  command: npm install -g npm

Update npm to the latest version when provisioning.
Update npm to the latest version when provisioning.

Resolves #239, which was a bug present in older versions of npm.
