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 b8f473dc
authored
Nov 28, 2017
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edit to support single-host architect
1 parent
fc0d2eb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
install_webgate.yml
install_webgate.yml
View file @
b8f473d
---
---
-
hosts
:
install
-wdchat-dma
-
hosts
:
deployed
-wdchat-dma
become
:
true
become
:
true
tasks
:
tasks
:
-
name
:
Move WebGate to Working Folder
-
name
:
Extract File
command
:
cp /tmp/source/webgate.3.0.4.tar.gz /opt/stack/webgate.3.0.4.tar.gz
command
:
tar -zxvf /tmp/source/webgate.3.0.4.tar.gz -C /tmp/source/
-
name
:
Extract WebGate
-
name
:
Backup current configuration
command
:
tar -zxvf /opt/stack/webgate.3.0.4.tar.gz -C /opt/stack/
command
:
mv /opt/stack/nginx/conf /opt/stack/nginx/bkconf
-
name
:
Delete File
-
name
:
Deploy new configuration
command
:
rm /opt/stack/webgate.3.0.4.tar.gz
command
:
mv /tmp/source/conf /opt/stack/nginx/.
\ No newline at end of file
-
name
:
Delete backup configuration
command
:
rm -r /opt/stack/nginx/bkconf
-
hosts
:
deploy-wdchat-dma-single-host
become
:
true
tasks
:
-
name
:
Extract File
command
:
tar -zxvf /tmp/source/webgate.singlehost.conf.tar.gz -C /tmp/source/
-
name
:
Backup current configuration
command
:
mv /opt/stack/nginx/conf /opt/stack/nginx/bkconf
-
name
:
Deploy new configuration
command
:
mv /tmp/source/conf /opt/stack/nginx/.
-
name
:
Delete backup configuration
command
:
rm -r /opt/stack/nginx/bkconf
\ 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