Ajout de certains fichiers du TP Ansible (Jusqu'au proxy).

This commit is contained in:
Guillaume Emorine
2024-10-11 11:38:18 +02:00
parent 0510ef607d
commit c5e8cf8b5b
7 changed files with 127 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
# playbook.yml
---
- hosts: web
tasks:
- name: 1. installe Apache
apt:
name: apache2
state: present
- name: 2. installe PHP pour Apache
apt:
name: php
state: present
- name: 3. installe php-mbstring
apt:
name: php-mbstring
state: present
- name: 4. installe index.html
copy:
src: index.html
dest: /var/www/html/index.html
mode: 0664