Use flatten to manage packages list
This commit is contained in:
parent
23a0dfa558
commit
af8963bb47
|
@ -1,4 +1,7 @@
|
||||||
## vX.Y.Z
|
## v2.0.3
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
* Use flatten to manage packages list.
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
* Works with Debian Bullseye
|
* Works with Debian Bullseye
|
||||||
|
|
|
@ -13,10 +13,8 @@
|
||||||
# Manage required client packages [[[1
|
# Manage required client packages [[[1
|
||||||
- name: client package
|
- name: client package
|
||||||
package:
|
package:
|
||||||
name: '{{ item }}'
|
name: '{{ xymon_cli__pkg_list | flatten }}'
|
||||||
state: '{{ xymon_cli__pkg_state }}'
|
state: '{{ xymon_cli__pkg_state }}'
|
||||||
with_items:
|
|
||||||
- '{{ xymon_cli__pkg_list | to_nice_json }}'
|
|
||||||
register: cli_result
|
register: cli_result
|
||||||
until: cli_result is success
|
until: cli_result is success
|
||||||
when: xymon_cli__manage|bool
|
when: xymon_cli__manage|bool
|
||||||
|
@ -53,10 +51,8 @@
|
||||||
# Manage all plugins's packages [[[1
|
# Manage all plugins's packages [[[1
|
||||||
- name: PLUGINS package and dependencies
|
- name: PLUGINS package and dependencies
|
||||||
package:
|
package:
|
||||||
name: '{{ item }}'
|
name: '{{ xymon_cli__plug_combined_packages | flatten }}'
|
||||||
state: 'present'
|
state: 'present'
|
||||||
with_items:
|
|
||||||
- '{{ xymon_cli__plug_combined_packages | to_nice_json }}'
|
|
||||||
when: (xymon_cli__manage|bool and
|
when: (xymon_cli__manage|bool and
|
||||||
xymon_cli__plug_manage|bool)
|
xymon_cli__plug_manage|bool)
|
||||||
register: combined_packages_plug_result
|
register: combined_packages_plug_result
|
||||||
|
|
Loading…
Reference in New Issue