init
This commit is contained in:
23
testansible/tpansible/dokuw/roles/doku/tasks/main.yml
Normal file
23
testansible/tpansible/dokuw/roles/doku/tasks/main.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
#playbook
|
||||
|
||||
---
|
||||
- name: paquets nécessaires
|
||||
apt:
|
||||
|
||||
|
||||
- name: recuperation dokuwiki-stable.tgz depuis machine depl
|
||||
get_url:
|
||||
url: http://depl/store/dokuwiki-stable.tgz
|
||||
dest: /tmp
|
||||
|
||||
- name: Extraction archive
|
||||
unarchive:
|
||||
|
||||
- name: stat rept
|
||||
stat:
|
||||
path: /mon/rept
|
||||
register: rept_stat
|
||||
|
||||
- name: On renomme rept en nouveau
|
||||
command: mv /mon/rept /mon/nouveau
|
||||
when: rept_stat.stat.exists
|
||||
12
testansible/tpansible/dokuw/roles/doku/tasks/main.yml.save
Normal file
12
testansible/tpansible/dokuw/roles/doku/tasks/main.yml.save
Normal file
@@ -0,0 +1,12 @@
|
||||
#
|
||||
---
|
||||
|
||||
|
||||
- name: recuperation dokuwiki-stable.tgz depuis machine depl
|
||||
get_url:
|
||||
url: http://depl/store/dokuwiki-stable.tgz
|
||||
dest: /tmpmem => variable squid ''cache_mem''
|
||||
*
|
||||
- name: Extraction archive
|
||||
unarchive:
|
||||
|
||||
Reference in New Issue
Block a user