Commit e3f8f7fc by ansible

no message

1 parent 6912ed50
- 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
...@@ -60,3 +60,10 @@ ...@@ -60,3 +60,10 @@
- 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'
- import_tasks: dma-stackscript.yml
when: app_name == 'dma'
- import_tasks: wdchat-stackscript.yml
when: app_name == 'wdchat'
...@@ -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
- 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
...@@ -16,4 +16,10 @@ ...@@ -16,4 +16,10 @@
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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!