...
 
Commits (5)
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
- hosts: - hosts:
- all - all
roles: roles:
- { role: config, tags: ["config", "api", "gitlab-bot"] } - { role: config, tags: ["config", "api", "gitlab", "gitlab-bot"] }
- { role: gitlab, tags: ["api", "gitlab", "gitlab-bot"] } - { role: gitlab, tags: ["api", "gitlab", "gitlab-bot"] }
- { role: reverse-proxy, tags: ["api", "doc", "gitlab"] } - { role: reverse-proxy, tags: ["api", "doc", "gitlab"] }
- { role: lib, tags: ["lib", "gitlab-bot"] } - { role: lib, tags: ["lib", "gitlab-bot"] }
- { role: api, tags: ["api"] } - { role: api, tags: ["api"] }
- { role: app, tags: ["app"] } - { role: app, tags: ["app"] }
- { role: gitlab-bot, tags: ["gitlab-bot", "gitlab"] } - { role: gitlab-bot, tags: ["gitlab-bot"] }
- { role: doc, tags: ["doc"] } - { role: doc, tags: ["doc"] }
- { role: pm2, tags: ["pm2", "api", "app", "gitlab-bot"] } - { role: pm2, tags: ["pm2", "api", "app", "gitlab-bot"] }
--- ---
dependencies: dependencies:
- { role: nodejs }
- { role: duralex-sedlex } - { role: duralex-sedlex }
---
dependencies:
- { role: nodejs }
--- ---
- file: - 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:
src: "/vagrant/lib/{{ item }}" src: "/vagrant/lib/{{ item }}"
dest: "/usr/local/lib/npm/lib/node_modules/{{ item }}" dest: "/usr/local/lib/npm/lib/node_modules/{{ item }}"
state: "link" state: "link"
...@@ -8,8 +14,9 @@ ...@@ -8,8 +14,9 @@
- amenda-gitlab - amenda-gitlab
- amenda-logger - amenda-logger
- npm: - name: Install global NPM packages dependencies
path: /vagrant/lib/{{ item }} npm:
path: "/vagrant/lib/{{ item }}"
with_items: with_items:
- amenda-gitlab - amenda-gitlab
- amenda-logger - amenda-logger