install_webgate.yml
1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
- hosts: 05_install-webgate-wdchat-dma-twohost
become: true
tasks:
- name: Move NginX to Working Folder
command: cp /tmp/source/webgate.3.0.4.tar.gz /opt/stack/webgate.3.0.4.tar.gz
- name: Extract NginX
command: tar -zxvf /opt/stack/webgate.3.0.4.tar.gz -C /opt/stack/
- name: Delete File
command: rm /opt/stack/webgate.3.0.4.tar.gz
- hosts: 05_install-webgate-wdchat-dma
become: true
tasks:
- name: Move NginX to Working Folder
command: cp /tmp/source/webgate.singlehost.dma.plus.wdchat.conf.tar.gz /opt/stack/webgate.singlehost.dma.plus.wdchat.conf.tar.gz
- name: Extract NginX
command: tar -zxvf /opt/stack/webgate.singlehost.dma.plus.wdchat.conf.tar.gz -C /opt/stack/
- name: Delete File
command: rm /opt/stack/webgate.singlehost.dma.plus.wdchat.conf.tar.gz
- hosts: 05_install-webgate-dma
become: true
tasks:
- name: Move NginX to Working Folder
command: cp /tmp/source/webgate.singlehost.dma.conf.tar.gz /opt/stack/webgate.singlehost.dma.conf.tar.gz
- name: Extract NginX
command: tar -zxvf /opt/stack/webgate.singlehost.dma.conf.tar.gz -C /opt/stack/
- name: Delete File
command: rm /opt/stack/webgate.singlehost.dma.conf.tar.gz
- hosts: 05_install-webgate-dma-3.1.0
become: true
tasks:
- name: Unarchive a file that is already on the remote machine
unarchive:
src: /tmp/source/webgate.3.1.0.zip
dest: /opt/stack
remote_src: yes
group: nginx
owner: nginx
mode: 0755
- file:
path: '/opt/{{ item.dir }}'
group: nginx
owner: nginx
mode: 0755
state: directory
recurse: yes
with_items:
- { dir: 'nginx' }