ajout répertoit 40-Ansible et fichier

This commit is contained in:
mathis
2022-10-11 09:12:29 +02:00
parent 76ae24a4f1
commit 87899ee6a9
5 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
---
- name: mon playbook
hosts: web
tasks:
- name: installation apache2
apt :
name: apache2
state: present
- name: installation php-mbstring
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/