Use flatten to manage packages list

This commit is contained in:
Jeremy Gardais 2023-02-17 16:47:39 +01:00
parent d0e0247978
commit 831dd45abd
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 6 additions and 3 deletions

View File

@ -1,9 +1,12 @@
## v1.X
## v1.3.2
### Enhancements
* Add a var to disable the role.
### Fix
* Use flatten to manage packages list.
## v1.3.1
### Enhancements

View File

@ -17,7 +17,7 @@
name: "{{ item }}"
state: 'present'
with_flattened:
- '{{ sssd_pkg_list | to_nice_json }}'
- '{{ sssd_pkg_list | flatten }}'
register: sssd_pkg_result
until: sssd_pkg_result is success
when: (sssd__deploy_state == "present")
@ -27,7 +27,7 @@
name: "{{ item }}"
state: "{{ sssd__unwanted_packages_state }}"
with_flattened:
- '{{ sssd__unwanted_packages_list | to_nice_json }}'
- '{{ sssd__unwanted_packages_list | flatten }}'
register: sssd_remove_result
until: sssd_remove_result is success
when: (sssd__deploy_state == "present")