Update to 2021-03-02 18:00

master
Daniel Berteaud 4 years ago
parent f3e33f9c8c
commit c6571386d2
  1. 1
      roles/glpi/defaults/main.yml
  2. 11
      roles/glpi/tasks/install.yml

@ -82,6 +82,7 @@ glpi_plugins:
version: 1.0.2 version: 1.0.2
sha1: c98a504f18c9914b57deda0340c19dbfad08440f sha1: c98a504f18c9914b57deda0340c19dbfad08440f
url: https://forge.glpi-project.org/attachments/download/2323/glpi-dashboard-1.0.2.zip url: https://forge.glpi-project.org/attachments/download/2323/glpi-dashboard-1.0.2.zip
rename_from: glpi-dashboard-1.0.2
glpi_plugins_to_install: [] glpi_plugins_to_install: []

@ -76,6 +76,17 @@
with_items: "{{ glpi_plugins_to_install }}" with_items: "{{ glpi_plugins_to_install }}"
tags: glpi tags: glpi
# Some plugins have the directory name not matching the plugin name
# Eg, glpi-dashboard-1.0.2 instead of GLPI. So it's removed as if it was an unmanaged plugin
# If the prop name_from is defined for the plugin, rename the dir
- name: Rename plugin dir
command: mv {{ glpi_root_dir }}/web/plugins/{{ glpi_plugins[item].rename_from }} {{ glpi_root_dir }}/web/plugins/{{ item }}
args:
creates: "{{ glpi_root_dir }}/web/plugins/{{ item }}"
when: glpi_plugins[item].rename_from is defined
loop: "{{ glpi_plugins_to_install }}"
tags: glpi
- name: Build a list of installed plugins - name: Build a list of installed plugins
shell: find {{ glpi_root_dir }}/web/plugins -maxdepth 1 -mindepth 1 -type d -exec basename "{}" \; shell: find {{ glpi_root_dir }}/web/plugins -maxdepth 1 -mindepth 1 -type d -exec basename "{}" \;
register: glpi_installed_plugins register: glpi_installed_plugins

Loading…
Cancel
Save