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 e3f8f7fc
authored
May 01, 2018
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
1 parent
6912ed50
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
27 deletions
roles/install/tasks/stackscript-dma.yml → roles/install/tasks/dma-stackscript.yml
roles/install/tasks/main.yml
roles/install/tasks/system-management.yml
roles/install/tasks/stackscript-wdchat.yml → roles/install/tasks/wdchat-stackscript.yml
roles/install/tasks/
stackscript-dma
.yml
→
roles/install/tasks/
dma-stackscript
.yml
View file @
e3f8f7f
-
name
:
Install Stack Management Script
-
name
:
Install Stack Management Script
unarchive
:
unarchive
:
src
:
/tmp/source/
stackscript.singlehost.zip
src
:
/tmp/source/
dma.stackscript.onehost.tar.gz
dest
:
/opt/stack
dest
:
/opt/stack
remote_src
:
yes
remote_src
:
yes
group
:
wdadmin
group
:
wdadmin
...
@@ -16,4 +16,8 @@
...
@@ -16,4 +16,8 @@
with_items
:
with_items
:
-
{
dir
:
'
script'
}
-
{
dir
:
'
script'
}
-
name
:
Begin Setup System Service
shell
:
/opt/stack/script/add_service.sh /opt/stack/script/engine.service
-
name
:
End Setup System Service
shell
:
/opt/stack/script/add_service.sh /opt/stack/script/nginx.tcp.service
roles/install/tasks/main.yml
View file @
e3f8f7f
...
@@ -59,4 +59,11 @@
...
@@ -59,4 +59,11 @@
when
:
app_name == 'dma'
when
:
app_name == 'dma'
-
import_tasks
:
system-management.yml
-
import_tasks
:
system-management.yml
when
:
app_name == 'dma' or app_name == 'wdchat'
when
:
app_name == 'dma' or app_name == 'wdchat'
\ No newline at end of file
-
import_tasks
:
dma-stackscript.yml
when
:
app_name == 'dma'
-
import_tasks
:
wdchat-stackscript.yml
when
:
app_name == 'wdchat'
roles/install/tasks/system-management.yml
View file @
e3f8f7f
...
@@ -52,27 +52,6 @@
...
@@ -52,27 +52,6 @@
-
name
:
End Install NTP service
-
name
:
End Install NTP service
command
:
systemctl restart ntp.service
command
:
systemctl restart ntp.service
-
name
:
Install Stack Management Script
unarchive
:
src
:
/tmp/source/stackscript.singlehost.zip
dest
:
/opt/stack
remote_src
:
yes
group
:
wdadmin
owner
:
wdadmin
mode
:
0711
-
file
:
path
:
'
/opt/stack/{{
item.dir
}}'
group
:
wdadmin
owner
:
wdadmin
mode
:
0755
state
:
directory
recurse
:
yes
with_items
:
-
{
dir
:
'
script'
}
-
name
:
Begin Setup System Service
command
:
/opt/stack/script/add_service.sh /opt/stack/script/engine.service
-
name
:
End Setup System Service
command
:
/opt/stack/script/add_service.sh /opt/stack/script/nginx.tcp.service
roles/install/tasks/
stackscript-wdcha
t.yml
→
roles/install/tasks/
wdchat-stackscrip
t.yml
View file @
e3f8f7f
-
name
:
Install Stack Management Script
-
name
:
Install Stack Management Script
unarchive
:
unarchive
:
src
:
/tmp/source/
stackscript.singlehost.zip
src
:
/tmp/source/
wdchat.stackscript.onehost.tar.gz
dest
:
/opt/stack
dest
:
/opt/stack
remote_src
:
yes
remote_src
:
yes
group
:
wdadmin
group
:
wdadmin
...
@@ -15,5 +15,11 @@
...
@@ -15,5 +15,11 @@
recurse
:
yes
recurse
:
yes
with_items
:
with_items
:
-
{
dir
:
'
script'
}
-
{
dir
:
'
script'
}
-
name
:
Begin Setup System Service
shell
:
/opt/stack/script/add_service.sh /opt/stack/script/engine.service
-
name
:
End Setup System Service
shell
:
/opt/stack/script/add_service.sh /opt/stack/script/nginx.tcp.service
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