Compare commits

..

1 Commits

Author SHA1 Message Date
bb
811b7c246f Syntaxe + login_unix_socket 2021-01-11 09:11:54 +01:00
2 changed files with 35 additions and 15 deletions

View File

@ -6,7 +6,7 @@
- snmp
- icinga
- nagios-snmp-plugins
- python3-passlib
- python-passlib
state: present
- name: Copie de fichier icinga.conf pour apache
@ -50,15 +50,6 @@
notify:
- restart icinga
- name: attribution des droits dossier icinga
file:
path: /var/lib/icinga
owner: nagios
mode: 751
recurse: yes
notify:
- restart icinga
- name: attribution des droits dossier icinga rw
file:
@ -69,6 +60,29 @@
notify:
- restart icinga
- name: attribution des droits dossier icinga
file:
path: /var/lib/icinga
owner: nagios
mode: 751
recurse: yes
notify:
- 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
file:
path: /var/lib/icinga/rw
# owner: www-data
mode: 2710
# recurse: yes
notify:
- restart icinga
#- name: Changement droit notif
# shell: chmod 644 /var/log/icinga/icinga.log

View File

@ -29,7 +29,9 @@
file: path=/etc/nginx/sites-enabled/default state=absent
- name: Creation fichier block nginx
template: src=block.j2 dest=/etc/nginx/sites-enabled/glpi
template:
src: block.j2
dest: /etc/nginx/sites-enabled/glpi
- name: Remplacement dans le fichier de conf php du timeout
replace:
@ -42,13 +44,17 @@
- restart nginx
- name: Creation de la base de donnee mysql
mysql_db: name={{ glpi_dbname }} state=present
mysql_db:
name: "{{ glpi_dbname }}"
state: present
login_unix_socket: /var/run/mysqld/mysqld.sock
- name: Creation de l'utilisateur mysql avec tous les privileges
mysql_user:
name={{ glpi_dbuser }}
password={{ glpi_dbpasswd }}
priv=*.*:ALL
name: "{{ glpi_dbuser }}"
password: "{{ glpi_dbpasswd }}"
priv: '*.*:ALL,GRANT'
login_unix_socket: /var/run/mysqld/mysqld.sock
- name: Creation du repertoire {{ glpi_dir }}
file: