Commit f0dbcb08 by ansible

no message

1 parent 76df9eab
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
path: /opt/stack/nginx path: /opt/stack/nginx
- name: Install NginX - name: Install NginX
unarchive: unarchive:
src: /tmp/source/webgate.3.1.0.zip src: /tmp/source/nginx.onehost.3.2.0.tar.gz
dest: /opt/stack dest: /opt/stack
remote_src: yes remote_src: yes
group: nginx group: nginx
...@@ -19,4 +19,6 @@ ...@@ -19,4 +19,6 @@
recurse: yes recurse: yes
with_items: with_items:
- { dir: 'nginx' } - { dir: 'nginx' }
- name: Enable DMA Site
shell: cp /opt/stack/nginx/conf/all-site/dma.conf /opt/stack/nginx/conf/enabled-site/dma.conf
...@@ -37,8 +37,11 @@ ...@@ -37,8 +37,11 @@
### Software Stack Module Installation ### ### Software Stack Module Installation ###
- name: Install software stack based on Application Name - name: Install software stack based on Application Name
import_tasks: nginx.yml import_tasks: dma-nginx.yml
when: app_name == 'dma' or app_name == 'wdchat' when: app_name == 'dma'
- import_tasks: wdchat-nginx.yml
when: app_name == 'wdchat'
- import_tasks: wdchat-mongodb.yml - import_tasks: wdchat-mongodb.yml
when: app_name == 'dma' or app_name == 'wdchat' when: app_name == 'dma' or app_name == 'wdchat'
......
- name: Remove Nginx if exist
file:
state: absent
path: /opt/stack/nginx
- name: Install NginX
unarchive:
src: /tmp/source/nginx.onehost.3.2.0.tar.gz
dest: /opt/stack
remote_src: yes
group: nginx
owner: nginx
mode: 0755
- file:
path: '/opt/stack/{{ item.dir }}'
group: nginx
owner: nginx
mode: 0755
state: directory
recurse: yes
with_items:
- { dir: 'nginx' }
- name: Enable WDCHAT Site
shell: cp /opt/stack/nginx/conf/all-site/wdchat.conf /opt/stack/nginx/conf/enabled-site/wdchat.conf
- name: Enable WDCHAT Download Site
shell: cp /opt/stack/nginx/conf/all-site/wdchatappdownload.conf /opt/stack/nginx/conf/enabled-site/wdchatappdownload.conf
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!