38 lines
853 B
YAML
38 lines
853 B
YAML
- name: 1. recuperation dokuwiki-stable.tgz depuis machine depl
|
|
get_url:
|
|
url: http://depl/store/dokuwiki-stable.tgz
|
|
dest: /tmp
|
|
|
|
- name: 2. Extraction archive dokuwiki-stage.tgz
|
|
unarchive:
|
|
src: /tmp/dokuwiki-stable.tgz
|
|
dest: /var/www/html/
|
|
remote_src: yes
|
|
|
|
- name: 3. stat dokuwiki
|
|
stat:
|
|
path: /var/www/html/dokuwiki-2023-04-04
|
|
register: doku_stat
|
|
|
|
- name: 4. On renomme doku-v... en doku
|
|
command: mv /var/www/html/dokuwiki-2023-04-04 /var/www/html/doku
|
|
when: doku_stat.stat.exists
|
|
|
|
- name: 5. Changer propritaire group et permissions
|
|
file:
|
|
path: /var/www/html/doku
|
|
owner: root
|
|
group: root
|
|
mode: '0755'
|
|
recurse: yes
|
|
|
|
- name: 6. Changer propritaire. group et permissions
|
|
file:
|
|
path: /var/www/html/doku
|
|
owner: www-data
|
|
group: www-data
|
|
recurse: yes
|
|
# mode: '755'
|
|
|
|
|