Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
b624c73feb | |||
aedd315561 | |||
0ba2f3e24d | |||
6845bc191b | |||
7369432feb | |||
596ceda13c | |||
7f47454ebf | |||
c478e22273 | |||
4d23d1a720 | |||
18ba7d06e5 |
@ -6,7 +6,7 @@
|
||||
- snmp
|
||||
- icinga
|
||||
- nagios-snmp-plugins
|
||||
- python-passlib
|
||||
- python3-passlib
|
||||
state: present
|
||||
|
||||
- name: Copie de fichier icinga.conf pour apache
|
||||
@ -50,16 +50,6 @@
|
||||
notify:
|
||||
- restart icinga
|
||||
|
||||
|
||||
- name: attribution des droits dossier icinga rw
|
||||
file:
|
||||
path: /var/lib/icinga/rw
|
||||
owner: nagios
|
||||
mode: 2710
|
||||
recurse: yes
|
||||
notify:
|
||||
- restart icinga
|
||||
|
||||
- name: attribution des droits dossier icinga
|
||||
file:
|
||||
path: /var/lib/icinga
|
||||
@ -70,20 +60,16 @@
|
||||
- restart icinga
|
||||
|
||||
|
||||
#- name: attribution des droits dossier var lib icinga
|
||||
# shell: chmod 2770 /var/lib/icinga/rw
|
||||
# notify:
|
||||
# - stop icinga
|
||||
|
||||
- name: attribution des droits dossier var lib icinga
|
||||
- name: attribution des droits dossier icinga rw
|
||||
file:
|
||||
path: /var/lib/icinga/rw
|
||||
# owner: www-data
|
||||
owner: nagios
|
||||
mode: 2710
|
||||
# recurse: yes
|
||||
recurse: yes
|
||||
notify:
|
||||
- restart icinga
|
||||
|
||||
|
||||
#- name: Changement droit notif
|
||||
# shell: chmod 644 /var/log/icinga/icinga.log
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
depl_url: "http://s-adm.gsb.adm/gsbstorefusioninventory"
|
||||
depl_url: "http://s-adm.gsb.adm/gsbstore"
|
||||
depl_glpi: "glpi-9.5.3.tgz"
|
||||
depl_fusioninventory: "fusioninventory-9.5.0+1.0.tar.bz2"
|
||||
|
||||
depl_fusioninventory_agentx64: "fusioninventory-agent_windows-x64_2.6.exe"
|
||||
depl_fusioninventory_agentx86: "fusioninventory-agent_windows-x86_2.6.exe"
|
||||
|
@ -17,6 +17,7 @@
|
||||
- php-cas
|
||||
- python-mysqldb
|
||||
- mariadb-server
|
||||
- python3-pymysql
|
||||
|
||||
- name: Changement listen dans le fichier conf de php7.3
|
||||
replace:
|
||||
@ -53,8 +54,12 @@
|
||||
mysql_user:
|
||||
name: "{{ glpi_dbuser }}"
|
||||
password: "{{ glpi_dbpasswd }}"
|
||||
priv: '*.*:ALL,GRANT'
|
||||
priv: "*.*:ALL,GRANT"
|
||||
login_unix_socket: /var/run/mysqld/mysqld.sock
|
||||
with_items:
|
||||
- 127.0.0.1
|
||||
# - ::1
|
||||
# - localhost
|
||||
|
||||
- name: Creation du repertoire {{ glpi_dir }}
|
||||
file:
|
||||
@ -110,12 +115,12 @@
|
||||
|
||||
- name: Installation de FusionInventory windows x64
|
||||
get_url:
|
||||
url: http://depl/gsbstore/fusioninventory-agent_windows-{{ fd_version64 }}.exe
|
||||
url: "{{ depl_url }}/{{ depl_fusioninventory_agentx64 }}"
|
||||
dest: "/var/www/html/ficlients"
|
||||
|
||||
- name: Installation de FusionInventory windows x86
|
||||
get_url:
|
||||
url: http://depl/gsbstore/fusioninventory-agent_windows-{{ fd_version86 }}.exe
|
||||
url: "{{ depl_url }}/{{ depl_fusioninventory_agentx86 }}"
|
||||
dest: "/var/www/html/ficlients"
|
||||
|
||||
- name: Copie du script dbdump
|
||||
|
@ -7,7 +7,7 @@ FIREL=9.5+1.0
|
||||
#https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi9.5.0%2B1.0/fusioninventory-9.5.0+1.0.tar.bz2
|
||||
wget -nc https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi9.5.0%2B1.0/fusioninventory-9.5.0+1.0.tar.bz2
|
||||
|
||||
FIAGREL=2.5.2
|
||||
FIAGREL=2.6
|
||||
wget -nc https://github.com/fusioninventory/fusioninventory-agent/releases/download/${FIAGREL}/fusioninventory-agent_windows-x64_${FIAGREL}.exe
|
||||
|
||||
wget -nc https://github.com/fusioninventory/fusioninventory-agent/releases/download/${FIAGREL}/fusioninventory-agent_windows-x86_${FIAGREL}.exe
|
||||
|
@ -7,7 +7,7 @@ FIREL=9.5+1.0
|
||||
#https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi9.5.0%2B1.0/fusioninventory-9.5.0+1.0.tar.bz2
|
||||
wget -nc https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi9.5.0%2B1.0/fusioninventory-9.5.0+1.0.tar.bz2
|
||||
|
||||
FIAGREL=2.5.2
|
||||
FIAGREL=2.6
|
||||
wget -nc https://github.com/fusioninventory/fusioninventory-agent/releases/download/${FIAGREL}/fusioninventory-agent_windows-x64_${FIAGREL}.exe
|
||||
|
||||
wget -nc https://github.com/fusioninventory/fusioninventory-agent/releases/download/${FIAGREL}/fusioninventory-agent_windows-x86_${FIAGREL}.exe
|
||||
|
@ -6,11 +6,7 @@
|
||||
|
||||
- name: Copie resolv.conf
|
||||
copy: src=resolv.conf dest=/etc/
|
||||
when: ansible_hostname != "s-adm"
|
||||
|
||||
- name: Copie resolv.conf
|
||||
copy: src=resolv.conf dest=/etc/
|
||||
when: ansible_hostname != "s-proxy"
|
||||
when: ansible_hostname != "s-adm" and ansible_hostname != "s-proxy"
|
||||
|
||||
- name: Copie resolv.conf pour s-proxy
|
||||
copy: src=resolv.conf.s-proxy dest=/etc/resolv.conf
|
||||
|
Reference in New Issue
Block a user