main.yml 497 Bytes
Newer Older
1 2
---

3 4 5 6 7 8 9
- name: Create /usr/local/lib/npm/lib/node_modules
  file:
    path: "/usr/local/lib/npm/lib/node_modules"
    state: "directory"

- name: Symlink the global NPM packages
  file:
10 11 12 13 14 15 16
    src: "/vagrant/lib/{{ item }}"
    dest: "/usr/local/lib/npm/lib/node_modules/{{ item }}"
    state: "link"
  with_items:
    - amenda-gitlab
    - amenda-logger

17 18 19
- name: Install global NPM packages dependencies
  npm:
    path: "/vagrant/lib/{{ item }}"
20 21 22
  with_items:
    - amenda-gitlab
    - amenda-logger