Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ansible
/
dma-playbook
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f0dbcb08
authored
May 03, 2018
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
1 parent
76df9eab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
4 deletions
roles/install/tasks/nginx.yml → roles/install/tasks/dma-nginx.yml
roles/install/tasks/main.yml
roles/install/tasks/wdchat-nginx.yml
roles/install/tasks/nginx.yml
→
roles/install/tasks/
dma-
nginx.yml
View file @
f0dbcb0
...
...
@@ -4,7 +4,7 @@
path
:
/opt/stack/nginx
-
name
:
Install NginX
unarchive
:
src
:
/tmp/source/
webgate.3.1.0.zip
src
:
/tmp/source/
nginx.onehost.3.2.0.tar.gz
dest
:
/opt/stack
remote_src
:
yes
group
:
nginx
...
...
@@ -19,4 +19,6 @@
recurse
:
yes
with_items
:
-
{
dir
:
'
nginx'
}
-
name
:
Enable DMA Site
shell
:
cp /opt/stack/nginx/conf/all-site/dma.conf /opt/stack/nginx/conf/enabled-site/dma.conf
roles/install/tasks/main.yml
View file @
f0dbcb0
...
...
@@ -37,8 +37,11 @@
### Software Stack Module Installation ###
-
name
:
Install software stack based on Application Name
import_tasks
:
nginx.yml
when
:
app_name == 'dma' or app_name == 'wdchat'
import_tasks
:
dma-nginx.yml
when
:
app_name == 'dma'
-
import_tasks
:
wdchat-nginx.yml
when
:
app_name == 'wdchat'
-
import_tasks
:
wdchat-mongodb.yml
when
:
app_name == 'dma' or app_name == 'wdchat'
...
...
roles/install/tasks/wdchat-nginx.yml
0 → 100644
View file @
f0dbcb0
-
name
:
Remove Nginx if exist
file
:
state
:
absent
path
:
/opt/stack/nginx
-
name
:
Install NginX
unarchive
:
src
:
/tmp/source/nginx.onehost.3.2.0.tar.gz
dest
:
/opt/stack
remote_src
:
yes
group
:
nginx
owner
:
nginx
mode
:
0755
-
file
:
path
:
'
/opt/stack/{{
item.dir
}}'
group
:
nginx
owner
:
nginx
mode
:
0755
state
:
directory
recurse
:
yes
with_items
:
-
{
dir
:
'
nginx'
}
-
name
:
Enable WDCHAT Site
shell
:
cp /opt/stack/nginx/conf/all-site/wdchat.conf /opt/stack/nginx/conf/enabled-site/wdchat.conf
-
name
:
Enable WDCHAT Download Site
shell
:
cp /opt/stack/nginx/conf/all-site/wdchatappdownload.conf /opt/stack/nginx/conf/enabled-site/wdchatappdownload.conf
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment