21 lines
432 B
YAML
21 lines
432 B
YAML
---
|
|
- name: web.yml
|
|
hosts: web
|
|
tasks:
|
|
- name: 1. installer apache2
|
|
apt :
|
|
name: apache2
|
|
state: present
|
|
- name: 2 installer php-mbstring
|
|
apt:
|
|
name: php-mbstring
|
|
state: present
|
|
- name: 3 assurer Apache tourne
|
|
service:
|
|
name: apache2
|
|
state: started
|
|
- name: 4 copier le fichier index.html vers /var/www/html
|
|
template:
|
|
src: index.html
|
|
dest: /var/www/html/
|