Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
811b7c246f |
@ -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
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user