|
|
@ -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 |
|
|
|