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 f6107533
authored
Nov 22, 2017
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add "Configure /etc/hosts" action
Add "Configure hostname" action
1 parent
4c6a2123
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
deploy_customer_configuration.yml
deploy_customer_configuration.yml
View file @
f610753
...
...
@@ -73,6 +73,7 @@
updateURL
:
https://bpchat.beebuddy.net:444/index.html
dmaserverName
:
'
server_name
bpdma.beebuddy.net;'
wdchatserverName
:
'
server_name
bpchat.beebuddy.net;'
hostName
:
wdchat
tasks
:
-
file
:
path
:
/opt/stack/dma/conf/dmaconfig.properties
...
...
@@ -96,4 +97,18 @@
expect
:
command
:
/opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -c "update wd_sys_config set sys_value = '{{ updateURL }}' where sys_group ='appversion' and sys_key = 'update_url'"
responses
:
'
Password
for
user
wdchat'
:
'
BBRyAPNh6g4H9qte'
\ No newline at end of file
'
Password
for
user
wdchat'
:
'
BBRyAPNh6g4H9qte'
-
name
:
Edit hostname
hostname
:
name={{ hostName }}
-
name
:
Configure /etc/hosts
lineinfile
:
dest
:
/etc/hosts
state
:
present
backrefs
:
yes
regexp
:
"
{{
item.reg
}}"
line
:
"
{{
item.line
}}"
with_items
:
-
{
reg
:
'
^(127.0.0.1).*'
,
line
:
\1 wdchatgateway localhost wdchatengine
{{
hostName
}}
}
tags
:
reg
\ 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