renommé : sio2/SISR/09-ansible/syslog.yml -> sio2/SISR/09-ansible/rsyslog/syslog.yml supprimé : sio2/SISR/09-ansible/squid.conf.j2 renommé : sio2/SISR/09-ansible/squid.yml -> sio2/SISR/09-ansible/squid/squid.yml renommé : sio2/SISR/09-ansible/index.html -> sio2/SISR/09-ansible/web/index.html renommé : sio2/SISR/09-ansible/web.yml -> sio2/SISR/09-ansible/web/web.yml
23 lines
437 B
YAML
23 lines
437 B
YAML
---
|
|
- hosts: web
|
|
tasks:
|
|
- name: installation de apache2
|
|
apt:
|
|
name: apache2
|
|
state: present
|
|
|
|
- name: installation de php
|
|
apt:
|
|
name: php
|
|
state: present
|
|
|
|
- name: installation de php-mbstring
|
|
apt:
|
|
name: php-mbstring
|
|
state: present
|
|
|
|
- name: inserer un fichier index.html dans /var/www/html
|
|
template:
|
|
src: index.html
|
|
dest: /var/www/html/
|