Skip to content

Commit 4b9f74e

Browse files
committed
Adding node/mongo profiles.
1 parent 322a62b commit 4b9f74e

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

roles/mongo.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
- hosts: backend-mongo
2+
user: root
3+
tasks:
4+
- name: Setup | Install mongo
5+
action: apt pkg=$item state=installed
6+
tags: common
7+
with_items:
8+
- mongodb
9+
- mongodb-server
10+
- python-pymongo

roles/node.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- hosts: middle-node
2+
user: root
3+
tasks:
4+
- name: Setup | Install nodejs
5+
action: apt pkg=$item state=installed
6+
tags: common
7+
with_items:
8+
- nodejs
9+
- nodejs-dev

site.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
- apt: update-cache=yes
55
when_unset: $apt_cache_updated
66
register: apt_cache_updated
7-
7+
- include: roles/node.yml
88
- include: roles/web.yml

0 commit comments

Comments
 (0)