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 cf0a14b6
authored
Apr 27, 2018
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
1 parent
612f724f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
roles/deploy/tasks/main.yml
roles/deploy/tasks/main.yml
View file @
cf0a14b
-
name
:
Start SoftwareStack
shell
:
/opt/stack/mongodb/ctlscript.sh start
when
:
app_name == 'dma' or app_name == 'wdchat'
-
name
:
Start SoftwareStack
shell
:
/opt/stack/postgres/ctlscript.sh start
when
:
app_name == 'dma' or app_name == 'wdchat'
-
name
:
Start SoftwareStack
shell
:
/opt/stack/mongodb1/ctlscript.sh start
when
:
app_name == 'dma'
-
name
:
Start SoftwareStack
shell
:
/opt/stack/mongodb2/ctlscript.sh start
-
name
:
Start SoftwareStack
shell
:
/opt/stack/postgres/ctlscript.sh start
when
:
app_name == 'dma'
-
name
:
Deploy Application based on Application Name
import_tasks
:
apimanager.yml
...
...
@@ -15,11 +19,15 @@
-
import_tasks
:
wdchat.yml
when
:
app_name == 'wdchat'
-
name
:
St
op
SoftwareStack
-
name
:
St
art
SoftwareStack
shell
:
/opt/stack/mongodb/ctlscript.sh stop
-
name
:
Stop SoftwareStack
when
:
app_name == 'dma' or app_name == 'wdchat'
-
name
:
Start SoftwareStack
shell
:
/opt/stack/postgres/ctlscript.sh stop
when
:
app_name == 'dma' or app_name == 'wdchat'
-
name
:
Start SoftwareStack
shell
:
/opt/stack/mongodb1/ctlscript.sh stop
-
name
:
Stop SoftwareStack
when
:
app_name == 'dma'
-
name
:
Start SoftwareStack
shell
:
/opt/stack/mongodb2/ctlscript.sh stop
-
name
:
Stop SoftwareStack
shell
:
/opt/stack/postgres/ctlscript.sh stop
when
:
app_name == 'dma'
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