59 lines
1.2 KiB
YAML
59 lines
1.2 KiB
YAML
- name: recuperation dokuwiki-stable.tgz depuis machine depl
|
|
get_url:
|
|
url: http://depl.sio.lan/store/dokuwiki-stable.tgz
|
|
dest: /tmp
|
|
|
|
- name: Extraction archive
|
|
unarchive:
|
|
src: /tmp/dokuwiki-stable.tgz
|
|
dest: /var/www/html
|
|
remote_src: yes
|
|
|
|
- name: stat rept
|
|
stat:
|
|
path: /var/www/html/dokuwiki-2020-07-29
|
|
register: rept_stat
|
|
|
|
- name: Renommage de dokuwiki-stable
|
|
command: mv /var/www/html/dokuwiki-2020-07-29 /var/www/html/doku
|
|
when: rept_stat.stat.exists
|
|
|
|
- name: Droit root recursive
|
|
file:
|
|
path: /var/www/html/doku
|
|
state: directory
|
|
recurse: yes
|
|
owner: root
|
|
group: root
|
|
|
|
- name: droit 755
|
|
file:
|
|
path: /var/www/html/doku
|
|
state: directory
|
|
mode: '0755'
|
|
recurse: yes
|
|
|
|
- name: droit apache data
|
|
file:
|
|
path: /var/www/html/doku/data
|
|
state: directory
|
|
owner: www-data
|
|
group: www-data
|
|
recurse: yes
|
|
|
|
- name: droit apache lib
|
|
file:
|
|
path: /var/www/html/doku/lib
|
|
state: directory
|
|
owner: www-data
|
|
group: www-data
|
|
recurse: yes
|
|
|
|
- name: droit apache conf
|
|
file:
|
|
path: /var/www/html/doku/conf
|
|
state: directory
|
|
owner: www-data
|
|
group: www-data
|
|
recurse: yes
|