siotp/sio2/AP4/glpi.yml
2023-12-07 14:10:44 +01:00

45 lines
787 B
YAML

---
- 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