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 b0e70c2b
authored
Apr 27, 2018
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
1 parent
f4adfb7d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
10 deletions
deployapp.yml
roles/initial/tasks/main.yml
deployapp.yml
View file @
b0e70c2
...
...
@@ -7,8 +7,8 @@
updateURL
:
https://{{ app_fqdn }}:444/index.html
dmaserverName
:
'
server_name
{{
app_fqdn
}};'
wdchatserverName
:
'
server_name
{{
app_fqdn
}};'
hostName
:
wdchat
etcHost
:
'
127.0.0.1
wdchatgateway
localhost
wdchatengine
wdchat
'
hostName
:
{{
hostname
}}
etcHost
:
'
127.0.0.1
wdchatgateway
localhost
wdchatengine
{{
hostname
}}
'
tasks
:
-
import_role
:
name
:
deploy
\ No newline at end of file
roles/initial/tasks/main.yml
View file @
b0e70c2
-
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
:
Initial Application based on Application Name
import_tasks
:
initial_user_db_wdchat.yml
...
...
@@ -37,11 +41,15 @@
#- import_tasks: update_data_dma_3.4.0.yml
# when: app_name == 'dma' and app_version == '3.4.0'
-
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
\ No newline at end of file
when
:
app_name == 'dma'
\ No newline at end of file
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