projet AP4 ansible glpi

This commit is contained in:
Alhassane Kone
2023-12-07 14:10:44 +01:00
parent 4f6469cd98
commit fc7d4de480
7 changed files with 245 additions and 0 deletions

44
sio2/AP4/rp Normal file
View File

@ -0,0 +1,44 @@
---
- name: glpi.yml
hosts: glpi
become: yes
tasks:
- name: 1. Installer apache php
apt:
name:
- apache2
- php
state: present
#notify: 2. redémarrer apache et activer adminer
- name: 2. Installation des extensions php de GLPI
apt:
name:
- php-xml
- php-common
- php-mysql
- php-mbstring
- php-curl
- php-imap
- php-zip
- php-int1
- php-ldap
- php-xmlrpc
- php-imap
- php-bz2
state: present
notify: 3. redemarrer php
- name: 4. redémarrer apache et activer adminer
shell: sudo systemctl reload apache2
handlers:
- name: 3. redemarrer php
service:
name: php
state: restarted