From c651541614b3d3f92f416435f2a07509b23dcd40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Tue, 24 Jan 2023 11:14:26 +0100 Subject: [PATCH] Use flatten to manage packages list --- CHANGELOG.md | 4 ++++ tasks/main.yml | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab30349..b45af01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.0.1 + +### Fix +* Use flatten to manage packages list. ## v1.0.0 diff --git a/tasks/main.yml b/tasks/main.yml index 7a63144..0632e38 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -6,11 +6,9 @@ # Manage base system packages [[[1 - name: Ensure base packages are in there desired state package: - name: '{{ item }}' + name: '{{ netdata__base_packages | flatten }}' state: '{{ "present" if (netdata__deploy_state == "present") else "absent" }}' install_recommends: '{{ netdata__install_recommends | bool }}' - with_flattened: - - '{{ netdata__base_packages | to_nice_json }}' register: pkg_result until: pkg_result is success