2 Commits
v1.5 ... v1.6

Author SHA1 Message Date
ceece5a13c reorganisation des repertoires 2023-10-15 12:26:59 +02:00
d18f102841 playbook ansible 2023-10-13 13:03:04 +02:00
2 changed files with 26 additions and 0 deletions

6
sio2/CYBER/Ansible/hosts Normal file
View File

@ -0,0 +1,6 @@
[adm]
infra
[web]
web1
web2

View File

@ -0,0 +1,20 @@
---
- 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/