From f66fc1b4e434d56cc3c97adc8c26b5b69839a081 Mon Sep 17 00:00:00 2001 From: mathis Date: Thu, 13 Oct 2022 10:14:22 +0200 Subject: [PATCH] ajout doku --- sio2/sisr2/40-Ansible/dokuw/local.yml | 4 ++++ sio2/sisr2/40-Ansible/dokuw/roles/doku/tasks/main.yml | 7 +++++++ sio2/sisr2/40-Ansible/dokuw/roles/web/tasks/main.yml | 9 +++++++++ 3 files changed, 20 insertions(+) create mode 100644 sio2/sisr2/40-Ansible/dokuw/local.yml create mode 100644 sio2/sisr2/40-Ansible/dokuw/roles/doku/tasks/main.yml create mode 100644 sio2/sisr2/40-Ansible/dokuw/roles/web/tasks/main.yml diff --git a/sio2/sisr2/40-Ansible/dokuw/local.yml b/sio2/sisr2/40-Ansible/dokuw/local.yml new file mode 100644 index 0000000..edf3ea8 --- /dev/null +++ b/sio2/sisr2/40-Ansible/dokuw/local.yml @@ -0,0 +1,4 @@ +- hosts: all + roles: + - web + - doku diff --git a/sio2/sisr2/40-Ansible/dokuw/roles/doku/tasks/main.yml b/sio2/sisr2/40-Ansible/dokuw/roles/doku/tasks/main.yml new file mode 100644 index 0000000..b8151d6 --- /dev/null +++ b/sio2/sisr2/40-Ansible/dokuw/roles/doku/tasks/main.yml @@ -0,0 +1,7 @@ +- name: recuperation dokuwiki-stable.tgz depuis machine depl + get_url: + url: http://depl/store/dokuwiki-stable.tgz + dest: /tmp + +- name: Extraction archive + unarchive: diff --git a/sio2/sisr2/40-Ansible/dokuw/roles/web/tasks/main.yml b/sio2/sisr2/40-Ansible/dokuw/roles/web/tasks/main.yml new file mode 100644 index 0000000..8f3ebda --- /dev/null +++ b/sio2/sisr2/40-Ansible/dokuw/roles/web/tasks/main.yml @@ -0,0 +1,9 @@ +- name: installation apache2 php php-gd php-mbstring php-string php-xml + apt: + name: + - apache2 + - php + - php-gd + - php-mbstring + - php-xml + state: present