Use to_nice_json to manage packages list

This commit is contained in:
Jeremy Gardais 2019-02-27 11:43:39 +01:00
parent c6922a2e48
commit 31955ca7b3
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
## v1.3.3
### Enhancements
* Use to_nice_json to manage packages list.
## v1.3.2
### Enhancements

View File

@ -16,7 +16,7 @@
name: '{{ item }}'
state: '{{ xymon_cli_pkg_state }}'
with_items:
- '{{ xymon_cli_pkg_list }}'
- '{{ xymon_cli_pkg_list | to_nice_json }}'
register: cli_result
until: cli_result is success
when: xymon_cli_manage|bool
@ -56,7 +56,7 @@
name: '{{ item }}'
state: '{{ "present" if xymon_plug_apt_state else "absent" }}'
with_items:
- '{{ xymon_plug_apt_package }}'
- '{{ xymon_plug_apt_package | to_nice_json }}'
when: (xymon_cli_manage|bool and
xymon_plug_manage|bool)
register: apt_plug_result
@ -91,7 +91,7 @@
name: '{{ item }}'
state: '{{ "present" if xymon_plug_mq_state else "absent" }}'
with_items:
- '{{ xymon_plug_mq_package }}'
- '{{ xymon_plug_mq_package | to_nice_json }}'
register: mq_plug_result
until: mq_plug_result is success
when: (xymon_cli_manage|bool and
@ -115,7 +115,7 @@
name: '{{ item }}'
state: '{{ "present" if xymon_cli__plug_ipmi_state else "absent" }}'
with_items:
- '{{ xymon_cli__plug_ipmi_package }}'
- '{{ xymon_cli__plug_ipmi_package | to_nice_json }}'
register: ipmi_plug_result
until: ipmi_plug_result is success
when: (xymon_cli_manage|bool and
@ -139,7 +139,7 @@
name: '{{ item }}'
state: '{{ "present" if xymon_plug_libs_state else "absent" }}'
with_items:
- '{{ xymon_plug_libs_package }}'
- '{{ xymon_plug_libs_package | to_nice_json }}'
register: libs_plug_result
until: libs_plug_result is success
when: (xymon_cli_manage|bool and