From 4425d39585d28507e9cce43dc790680b26cb3b4f Mon Sep 17 00:00:00 2001 From: "johan.largy" Date: Mon, 10 Oct 2022 10:34:14 +0200 Subject: [PATCH] ajout script --- sio2/sisr2/40-Ansible/web.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sio2/sisr2/40-Ansible/web.yml diff --git a/sio2/sisr2/40-Ansible/web.yml b/sio2/sisr2/40-Ansible/web.yml new file mode 100644 index 0000000..a314ff3 --- /dev/null +++ b/sio2/sisr2/40-Ansible/web.yml @@ -0,0 +1,22 @@ +--- +- name: mon playbook + hosts: web + tasks: + + - name: installation apache2 + apt : + name: apache2 + state: present + - name: installation php + apt : + name: php + state: present + - name: installation php-mbstring + apt : + name: php-mbstring + state: present + + - name: Copie index.html + copy: + src: index.html + dest: /var/www/html/