28 lines
503 B
YAML
28 lines
503 B
YAML
---
|
|
- hosts: web
|
|
vars:
|
|
http_port: 80
|
|
max_clients: 200
|
|
remote_user: root
|
|
tasks:
|
|
- name: install apache2
|
|
apt :
|
|
name: apache2
|
|
state: present
|
|
- name: install php
|
|
apt :
|
|
name: php
|
|
state: present
|
|
- name: install php-mbstring
|
|
apt :
|
|
name: php-mbstring
|
|
state: present
|
|
- name: apache is running
|
|
service:
|
|
name: apache2
|
|
state: started
|
|
- name: copie fichier index.html
|
|
copy:
|
|
src: index.html
|
|
dest: /var/www/html/
|