Compare commits
No commits in common. "efcbd3d0cfbd207a078a4affd408a67c5917e716" and "1a9cfeb5d2d4553aea151a026f7490f60a8344bc" have entirely different histories.
efcbd3d0cf
...
1a9cfeb5d2
@ -1,15 +1,6 @@
|
||||
#variable depl
|
||||
depl_url: "http://s-adm.gsb.adm/gsbstore"
|
||||
#depl_glpi: "glpi-9.5.6.tgz"
|
||||
depl_glpi: "glpi-10.0.11.tgz"
|
||||
#depl_fusioninventory: "fusioninventory-9.5+3.0.tar.bz2"
|
||||
depl_glpi_agentx64: "GLPI-Agent-1.7-x64.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"
|
||||
depl_glpi_agentx86: "GLPI-Agent-1.4-x86.msi"
|
||||
|
4
roles/glpi/files/dbdump
Normal file
4
roles/glpi/files/dbdump
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
chm="/var/www/html/glpi/files/_dumps"
|
||||
# Dump base GLPI
|
||||
mysqldump -uroot -proot glpi |gzip > $chm/$(date +%Y-%m-%d).sql.gz
|
@ -41,9 +41,6 @@
|
||||
src: block.j2
|
||||
dest: /etc/nginx/sites-enabled/glpi
|
||||
|
||||
notify:
|
||||
- restart nginx
|
||||
|
||||
- name: Remplacement dans le fichier de conf php du timeout
|
||||
replace:
|
||||
dest: /etc/php/8.2/fpm/php.ini
|
||||
@ -115,9 +112,9 @@
|
||||
# dest: /var/www/html/glpi/plugins
|
||||
# remote_src: yes
|
||||
|
||||
- name: Creation de glpicli
|
||||
- name: Creation de ficlient
|
||||
file:
|
||||
path: "{{ glpi_cli }}"
|
||||
path: /var/www/html/ficlients
|
||||
state: directory
|
||||
owner: www-data
|
||||
group: www-data
|
||||
@ -133,19 +130,21 @@
|
||||
- name: Installation de GLPI Agent windows x64
|
||||
get_url:
|
||||
url: "{{ depl_url }}/{{ depl_glpi_agentx64 }}"
|
||||
dest: "{{ glpi_cli }}"
|
||||
dest: "/var/www/html/ficlients"
|
||||
|
||||
notify:
|
||||
- restart nginx
|
||||
# - name: Installation de GLPI Agent windows x86
|
||||
# get_url:
|
||||
# url: "{{ depl_url }}/{{ depl_glpi_agentx86 }}"
|
||||
# dest: "/var/www/html/ficlients"
|
||||
|
||||
- name: lancer la commande de création de la base de donnees glpi
|
||||
ansible.builtin.shell: php bin/console database:install -f -n
|
||||
args:
|
||||
chdir: "{{ glpi_dir }}"
|
||||
- name: Copie du script dbdump
|
||||
copy:
|
||||
src: dbdump
|
||||
dest: /root/
|
||||
|
||||
- name: chmod de dbdump
|
||||
shell: chmod +x /root/dbdump
|
||||
|
||||
- debug:
|
||||
msg: "base de donnees de glpi creer"
|
||||
|
||||
- debug:
|
||||
msg: "Redemarrez le serveur GLPI"
|
||||
|
||||
|
@ -16,7 +16,7 @@ server {
|
||||
fastcgi_param SERVER_NAME $host;
|
||||
}
|
||||
|
||||
location /glpicli {
|
||||
location /ficlients {
|
||||
root /var/www/html;
|
||||
autoindex on;
|
||||
}
|
||||
|
14
s-itil.yml
14
s-itil.yml
@ -2,13 +2,13 @@
|
||||
- hosts: localhost
|
||||
connection: local
|
||||
|
||||
#vars:
|
||||
#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"
|
||||
vars:
|
||||
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"
|
||||
|
||||
roles:
|
||||
- base
|
||||
|
Loading…
x
Reference in New Issue
Block a user