From 96cb377d9bd4d8b0b844b5747624823cbe26ee41 Mon Sep 17 00:00:00 2001 From: bb Date: Tue, 12 Jan 2021 16:16:04 +0100 Subject: [PATCH] Changement des droits sur /plugins/fusioninventory --- roles/itil/defaults/main.yml | 2 +- roles/itil/tasks/main.yml | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/roles/itil/defaults/main.yml b/roles/itil/defaults/main.yml index f82b605..44c63a9 100644 --- a/roles/itil/defaults/main.yml +++ b/roles/itil/defaults/main.yml @@ -1,4 +1,4 @@ -depl_url: "http://s-adm.gsb.adm/gsbstore" +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" diff --git a/roles/itil/tasks/main.yml b/roles/itil/tasks/main.yml index 9d19ffa..e93e925 100644 --- a/roles/itil/tasks/main.yml +++ b/roles/itil/tasks/main.yml @@ -84,6 +84,8 @@ file: path: "{{ glpi_dir }}/plugins" mode: 0777 + owner: www-data + group: www-data recurse: yes - name: Attribution des permissions @@ -98,12 +100,6 @@ #src: http://depl/gsbstore/fusioninventory-{{ fd_version }}.tar.bz2 dest: /var/www/html/glpi/plugins remote_src: yes - file: - path: /var/www/html/glpi/plugins/fusioninventory - state: directory - owner: www-data - group: www-data - mode: 0775 - name: Creation de ficlient file: @@ -130,6 +126,14 @@ url: "{{ depl_url }}/{{ depl_fusioninventory_agentx86 }}" dest: "/var/www/html/ficlients" + - name: Attribution des permissions sur repertoire /plugins/fusioninventory + file: + path: /var/www/html/glpi/plugins/fusioninventory + owner: www-data + group: www-data + recurse: yes + state: directory + - name: Copie du script dbdump copy: src=dbdump dest=/root/