forked from ISTI-ansible-roles/ansible-roles
Role that installs the parse service.
This commit is contained in:
parent
567d6564d5
commit
a994495806
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
parse_server_user: parsesrv
|
||||
parse_server_user_home: /srv/parse
|
||||
parse_server_npm_modules:
|
||||
- parse-server
|
||||
- pm2
|
||||
|
||||
parse_server_http_port: 1337
|
||||
parse_server_db: parse_db
|
||||
parse_server_mongodb_url: 'mongodb://localhost:27017/{{ parse_server_db }}'
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
dependencies:
|
||||
- role: '../../library/roles/nginx'
|
||||
- role: '../../library/roles/node_js'
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
- block:
|
||||
- name: Create the parse user
|
||||
user: name={{ parse_server_user }} home={{ parse_server_user_home }} createhome=no system=yes shell=/bin/bash
|
||||
|
||||
- name: Create the parse home directory
|
||||
file: dest={{ parse_server_user_home }} owner={{ parse_server_user }} group={{ parse_server_user }} mode=0755 state=directory
|
||||
|
||||
- name: Install the parse server
|
||||
npm: name={{ item }} global=yes state=present production=true
|
||||
with_items: '{{ parse_server_npm_modules }}'
|
||||
|
||||
tags: [ 'parse', 'parse_server' ]
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
mongodb_version: 3.2
|
||||
node_js_repo_version: 8
|
Loading…
Reference in New Issue