- hosts: head
  tasks:
    - name: install nodejs 12
      become: true
      block:
        - name: enable nodejs 12 module
          command:
            warn: false
            cmd: dnf module enable nodejs:12 --assumeyes
        - name: install nodejs
          dnf:
            name: nodejs
            state: latest
    - name: install kive nodejs tools
      npm:
        path: /usr/local/share/Kive

Add a dev-env playbook to install NodeJS
Add a dev-env playbook to install NodeJS

This commit adds an ansible playbook to install NodeJS from the CentOS package
repository. NodeJS is installed globally (rather than using something like NVM)
so that all users (root, vagrant, kive, etc.) can use the same binaries.

Note that when building Kive's TypeScript the `static_root` directory created
by `collectstatic` should be removed running `npm install; the compiler
attempts to build typescript files in it which aren't set up to be compiled.
