Debut Ansible

This commit is contained in:
Louis
2022-10-11 08:11:15 +02:00
parent 6a287b8ee7
commit 62052834f9
4 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
---
- hosts: all
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