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