Compare commits
6 Commits
v0.0.3-tva
...
v0.4.3-bb
Author | SHA1 | Date | |
---|---|---|---|
7f47454ebf | |||
c478e22273 | |||
811b7c246f | |||
4d23d1a720 | |||
18ba7d06e5 | |||
9998a1f91a |
@ -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,4 @@
|
||||
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"
|
||||
|
||||
|
@ -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:
|
||||
|
8
roles/s-backup/tasks/main.yml
Normal file
8
roles/s-backup/tasks/main.yml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: installation rsync et smbclient
|
||||
apt:
|
||||
name:
|
||||
- rsync
|
||||
- smbclient
|
||||
state: present
|
||||
|
@ -9,3 +9,4 @@
|
||||
# - ssh-cli
|
||||
- syslog-cli
|
||||
- post
|
||||
- s-backup
|
||||
|
Reference in New Issue
Block a user