Use flatten to manage packages list

This commit is contained in:
Jeremy Gardais 2023-01-24 11:34:35 +01:00
parent c0a911d5df
commit edd21486f8
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
## v2.3.2
### Fix
* Use flatten to manage packages list.
## v2.3.1
### Enhancements
* Works with Debian Bullseye.

View File

@ -18,11 +18,9 @@
# Manage required system packages [[[1
- name: Ensure required packages are in there desired state
package:
name: '{{ item }}'
name: '{{ flexlm__required_packages | flatten }}'
state: '{{ "present" if (flexlm__deploy_state == "present") else "absent" }}'
install_recommends: False
with_flattened:
- '{{ flexlm__required_packages | to_nice_json }}'
register: flexlm_pkg_result
until: flexlm_pkg_result is success