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
### Features

View File

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