Don't remove any plugin dependencies

This commit is contained in:
Jeremy Gardais 2019-05-24 10:08:06 +02:00
parent d46011763f
commit 59493c112b
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 16 additions and 8 deletions

View File

@ -4,6 +4,10 @@
* Add variables to manage plugin interval. * Add variables to manage plugin interval.
* Add netstats plugin managment. * Add netstats plugin managment.
### Fix
* Don't remove any plugin dependencies cause some plugins might have the same.
Plugin dependencies will only be installed if the plugin is wanted.
## v1.3.3 ## v1.3.3
### Enhancements ### Enhancements

View File

@ -54,11 +54,12 @@
- name: PLUGIN apt packages - name: PLUGIN apt packages
package: package:
name: '{{ item }}' name: '{{ item }}'
state: '{{ "present" if xymon_plug_apt_state else "absent" }}' state: 'present'
with_items: with_items:
- '{{ xymon_plug_apt_package | to_nice_json }}' - '{{ xymon_plug_apt_package | to_nice_json }}'
when: (xymon_cli_manage|bool and when: (xymon_cli_manage|bool and
xymon_plug_manage|bool) xymon_plug_manage|bool and
xymon_plug_apt_state|bool)
register: apt_plug_result register: apt_plug_result
until: apt_plug_result is success until: apt_plug_result is success
notify: restart xymon-client service notify: restart xymon-client service
@ -89,13 +90,14 @@
- name: PLUGIN ipmi packages - name: PLUGIN ipmi packages
package: package:
name: '{{ item }}' name: '{{ item }}'
state: '{{ "present" if xymon_cli__plug_ipmi_state else "absent" }}' state: 'present'
with_items: with_items:
- '{{ xymon_cli__plug_ipmi_package | to_nice_json }}' - '{{ xymon_cli__plug_ipmi_package | to_nice_json }}'
register: ipmi_plug_result register: ipmi_plug_result
until: ipmi_plug_result is success until: ipmi_plug_result is success
when: (xymon_cli_manage|bool and when: (xymon_cli_manage|bool and
xymon_plug_manage|bool) xymon_plug_manage|bool and
xymon_cli__plug_ipmi_state|bool)
notify: restart xymon-client service notify: restart xymon-client service
- name: PLUGIN ipmi - name: PLUGIN ipmi
@ -113,13 +115,14 @@
- name: PLUGIN libs packages - name: PLUGIN libs packages
package: package:
name: '{{ item }}' name: '{{ item }}'
state: '{{ "present" if xymon_plug_libs_state else "absent" }}' state: 'present'
with_items: with_items:
- '{{ xymon_plug_libs_package | to_nice_json }}' - '{{ xymon_plug_libs_package | to_nice_json }}'
register: libs_plug_result register: libs_plug_result
until: libs_plug_result is success until: libs_plug_result is success
when: (xymon_cli_manage|bool and when: (xymon_cli_manage|bool and
xymon_plug_manage|bool) xymon_plug_manage|bool and
xymon_plug_libs_state|bool)
notify: restart xymon-client service notify: restart xymon-client service
- name: PLUGIN libs - name: PLUGIN libs
@ -148,13 +151,14 @@
- name: PLUGIN mq packages - name: PLUGIN mq packages
package: package:
name: '{{ item }}' name: '{{ item }}'
state: '{{ "present" if xymon_plug_mq_state else "absent" }}' state: 'present'
with_items: with_items:
- '{{ xymon_plug_mq_package | to_nice_json }}' - '{{ xymon_plug_mq_package | to_nice_json }}'
register: mq_plug_result register: mq_plug_result
until: mq_plug_result is success until: mq_plug_result is success
when: (xymon_cli_manage|bool and when: (xymon_cli_manage|bool and
xymon_plug_manage|bool) xymon_plug_manage|bool and
xymon_plug_mq_state|bool)
notify: restart xymon-client service notify: restart xymon-client service
- name: PLUGIN mq - name: PLUGIN mq