Commit c07e003c by ansible

no message

1 parent 4f7f4830
Showing with 18 additions and 7 deletions
......@@ -32,9 +32,20 @@
- hosts: 05_install-webgate-dma-3.1.0
become: true
tasks:
- name: Move NginX to Working Folder
command: cp /tmp/source/webgate.3.1.0.zip /opt/stack/webgate.3.1.0.zip
- name: Extract NginX
command: tar -zxvf /opt/stack/webgate.3.1.0.zip -C /opt/stack/
- name: Delete File
command: rm /opt/stack/webgate.3.1.0.zip
\ No newline at end of file
- 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' }
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!