Use flatten to manage packages list

This commit is contained in:
Jeremy Gardais 2023-01-24 11:30:38 +01:00
parent 3993f20716
commit 82833be113
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
## v2.0.1
### Fix
* Use flatten to manage packages list.
## v2.0.0 ## v2.0.0
### Features ### Features

View File

@ -6,11 +6,9 @@
# Manage required system packages [[[1 # Manage required system packages [[[1
- name: Ensure required packages are in there desired state - name: Ensure required packages are in there desired state
package: package:
name: '{{ item }}' name: '{{ arpwatch__base_packages | flatten }}'
state: 'present' state: 'present'
install_recommends: False install_recommends: False
with_flattened:
- '{{ arpwatch__base_packages | to_nice_json }}'
register: pkg_result register: pkg_result
until: pkg_result is success until: pkg_result is success
when: arpwatch__enabled|bool when: arpwatch__enabled|bool