Compare commits

...

7 Commits

Author SHA1 Message Date
18ba7d06e5 modif de l'ordre des droits rw 2021-01-11 08:24:37 +01:00
9998a1f91a commit s-backup 2021-01-11 08:10:23 +01:00
sio
ce810bf71e typo 2021-01-07 17:30:45 +01:00
sio
04e893f1ee itil utilisation depl 2021-01-07 17:24:35 +01:00
ad2a36783b Merge branch 'master' of https://gitea.lyc-lecastel.fr/gadmin/gsb2021 2021-01-07 17:08:50 +01:00
177ed5ada6 modif main.yml 2021-01-07 17:08:32 +01:00
sio
d6e497807e err typo s-mon .adm 2021-01-07 16:58:18 +01:00
6 changed files with 27 additions and 23 deletions

View File

@ -1,3 +1,3 @@
depl_url: "http://s-adm.gsb.lan/gsbstore"
depl_url: "http://s-adm.gsb.adm/gsbstore"
depl_goss: "goss"

View File

@ -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
@ -103,4 +89,4 @@
- name: redemarrage apache
service:
name: apache2
status: restarted
state: restarted

View File

@ -0,0 +1,4 @@
depl_url: "http://s-adm.gsb.adm/gsbstorefusioninventory"
depl_glpi: "glpi-9.5.3.tgz"
depl_fusioninventory: "fusioninventory-9.5.0+1.0.tar.bz2"

View File

@ -51,11 +51,15 @@
priv=*.*:ALL
- name: Creation du repertoire {{ glpi_dir }}
file: path={{ glpi_dir }} state=directory owner=www-data group=www-data
file:
path: "{{ glpi_dir }}"
state: directory
owner: www-data
group: www-data
- name: Installation de GLPI
unarchive:
src: http://depl/gsbstore/glpi-{{ glpi_version }}.tgz
src: "{{ depl_url }}/{{ depl_glpi }}"
dest: /var/www/html
remote_src: yes
owner: www-data
@ -78,7 +82,8 @@
- name: Installation de Fusioninventory pour Linux
unarchive:
src: http://depl/gsbstore/fusioninventory-{{ fd_version }}.tar.bz2
src: "{{ depl_url }}/{{ depl_fusioninventory }}"
#src: http://depl/gsbstore/fusioninventory-{{ fd_version }}.tar.bz2
dest: /var/www/html/glpi/plugins
remote_src: yes

View File

@ -0,0 +1,8 @@
---
- name: installation rsync et smbclient
apt:
name:
- rsync
- smbclient
state: present

View File

@ -9,3 +9,4 @@
# - ssh-cli
- syslog-cli
- post
- s-backup