Compare commits
3 Commits
v0.0.2b-ps
...
v0.0.2f-jm
Author | SHA1 | Date | |
---|---|---|---|
c78e135cb6 | |||
6902c40779 | |||
1a63a0d865 |
@ -74,3 +74,9 @@
|
|||||||
- net.ipv6.conf.all.disable_ipv6
|
- net.ipv6.conf.all.disable_ipv6
|
||||||
- net.ipv6.conf.default.disable_ipv6
|
- net.ipv6.conf.default.disable_ipv6
|
||||||
- net.ipv6.conf.lo.disable_ipv6
|
- net.ipv6.conf.lo.disable_ipv6
|
||||||
|
|
||||||
|
- name: desactive unatentted upgrade
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: unattended-upgrades.service
|
||||||
|
state: stopped
|
||||||
|
enabled: false
|
||||||
|
@ -1,6 +1,15 @@
|
|||||||
|
#variable depl
|
||||||
depl_url: "http://s-adm.gsb.adm/gsbstore"
|
depl_url: "http://s-adm.gsb.adm/gsbstore"
|
||||||
#depl_glpi: "glpi-9.5.6.tgz"
|
#depl_glpi: "glpi-9.5.6.tgz"
|
||||||
depl_glpi: "glpi-10.0.6.tgz"
|
depl_glpi: "glpi-10.0.11.tgz"
|
||||||
#depl_fusioninventory: "fusioninventory-9.5+3.0.tar.bz2"
|
#depl_fusioninventory: "fusioninventory-9.5+3.0.tar.bz2"
|
||||||
depl_glpi_agentx64: "GLPI-Agent-1.4-x64.msi"
|
depl_glpi_agentx64: "GLPI-Agent-1.7-x64.msi"
|
||||||
depl_glpi_agentx86: "GLPI-Agent-1.4-x86.msi"
|
|
||||||
|
#variables glpi
|
||||||
|
glpi_version: "10.0.11"
|
||||||
|
glpi_dir: "/var/www/html/glpi"
|
||||||
|
glpi_dbhost: "127.0.0.1"
|
||||||
|
glpi_dbname: "glpi"
|
||||||
|
glpi_dbuser: "glpi"
|
||||||
|
glpi_dbpasswd: "glpi"
|
||||||
|
glpi_cli: "/var/www/html/glpicli"
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
chm="/var/www/html/glpi/files/_dumps"
|
|
||||||
# Dump base GLPI
|
|
||||||
mysqldump -uroot -proot glpi |gzip > $chm/$(date +%Y-%m-%d).sql.gz
|
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: restart php-fpm
|
- name: restart php-fpm
|
||||||
service: name=php7.0-fpm state=restarted
|
service: name=php8.2-fpm state=restarted
|
||||||
|
|
||||||
- name: restart nginx
|
- name: restart nginx
|
||||||
service: name=nginx state=restarted
|
service: name=nginx state=restarted
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Installation des paquets
|
- name: Installation des paquets
|
||||||
apt:
|
apt:
|
||||||
state: latest
|
state: present
|
||||||
name:
|
name:
|
||||||
- nginx
|
- nginx
|
||||||
- php-fpm
|
- php-fpm
|
||||||
@ -24,10 +24,10 @@
|
|||||||
- postfix
|
- postfix
|
||||||
- mailutils
|
- mailutils
|
||||||
|
|
||||||
- name: Changement listen dans le fichier conf de php7.3
|
- name: Changement listen dans le fichier conf de php8.2
|
||||||
replace:
|
replace:
|
||||||
dest: /etc/php/7.4/fpm/pool.d/www.conf
|
dest: /etc/php/8.2/fpm/pool.d/www.conf
|
||||||
regexp: 'listen = /run/php/php7.4-fpm.sock'
|
regexp: 'listen = /run/php/php8.2-fpm.sock'
|
||||||
replace: 'listen = 127.0.0.1:9000'
|
replace: 'listen = 127.0.0.1:9000'
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
@ -41,9 +41,12 @@
|
|||||||
src: block.j2
|
src: block.j2
|
||||||
dest: /etc/nginx/sites-enabled/glpi
|
dest: /etc/nginx/sites-enabled/glpi
|
||||||
|
|
||||||
|
notify:
|
||||||
|
- restart nginx
|
||||||
|
|
||||||
- name: Remplacement dans le fichier de conf php du timeout
|
- name: Remplacement dans le fichier de conf php du timeout
|
||||||
replace:
|
replace:
|
||||||
dest: /etc/php/7.4/fpm/php.ini
|
dest: /etc/php/8.2/fpm/php.ini
|
||||||
regexp: 'max_execution_time = 30'
|
regexp: 'max_execution_time = 30'
|
||||||
replace: 'max_execution_time = 600'
|
replace: 'max_execution_time = 600'
|
||||||
backup: yes
|
backup: yes
|
||||||
@ -112,9 +115,9 @@
|
|||||||
# dest: /var/www/html/glpi/plugins
|
# dest: /var/www/html/glpi/plugins
|
||||||
# remote_src: yes
|
# remote_src: yes
|
||||||
|
|
||||||
- name: Creation de ficlient
|
- name: Creation de glpicli
|
||||||
file:
|
file:
|
||||||
path: /var/www/html/ficlients
|
path: "{{ glpi_cli }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: www-data
|
owner: www-data
|
||||||
group: www-data
|
group: www-data
|
||||||
@ -130,20 +133,18 @@
|
|||||||
- name: Installation de GLPI Agent windows x64
|
- name: Installation de GLPI Agent windows x64
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ depl_url }}/{{ depl_glpi_agentx64 }}"
|
url: "{{ depl_url }}/{{ depl_glpi_agentx64 }}"
|
||||||
dest: "/var/www/html/ficlients"
|
dest: "{{ glpi_cli }}"
|
||||||
|
|
||||||
# - name: Installation de GLPI Agent windows x86
|
notify:
|
||||||
# get_url:
|
- restart nginx
|
||||||
# url: "{{ depl_url }}/{{ depl_glpi_agentx86 }}"
|
|
||||||
# dest: "/var/www/html/ficlients"
|
|
||||||
|
|
||||||
- name: Copie du script dbdump
|
- name: lancer la commande de création de la base de donnees glpi
|
||||||
copy:
|
ansible.builtin.shell: php bin/console database:install -f -n
|
||||||
src: dbdump
|
args:
|
||||||
dest: /root/
|
chdir: "{{ glpi_dir }}"
|
||||||
|
|
||||||
- name: chmod de dbdump
|
- debug:
|
||||||
shell: chmod +x /root/dbdump
|
msg: "base de donnees de glpi creer"
|
||||||
|
|
||||||
- debug:
|
- debug:
|
||||||
msg: "Redemarrez le serveur GLPI"
|
msg: "Redemarrez le serveur GLPI"
|
||||||
|
@ -16,7 +16,7 @@ server {
|
|||||||
fastcgi_param SERVER_NAME $host;
|
fastcgi_param SERVER_NAME $host;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /ficlients {
|
location /glpicli {
|
||||||
root /var/www/html;
|
root /var/www/html;
|
||||||
autoindex on;
|
autoindex on;
|
||||||
}
|
}
|
||||||
|
14
s-itil.yml
14
s-itil.yml
@ -2,13 +2,13 @@
|
|||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
|
|
||||||
vars:
|
#vars:
|
||||||
glpi_version: "10.0.6"
|
#glpi_version: "10.0.11"
|
||||||
glpi_dir: "/var/www/html/glpi"
|
#glpi_dir: "/var/www/html/glpi"
|
||||||
glpi_dbhost: "127.0.0.1"
|
#glpi_dbhost: "127.0.0.1"
|
||||||
glpi_dbname: "glpi"
|
#glpi_dbname: "glpi"
|
||||||
glpi_dbuser: "glpi"
|
#glpi_dbuser: "glpi"
|
||||||
glpi_dbpasswd: "glpi"
|
#glpi_dbpasswd: "glpi"
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
|
Reference in New Issue
Block a user