projet AP4 ansible glpi
This commit is contained in:
44
sio2/AP4/rp
Normal file
44
sio2/AP4/rp
Normal 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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user