From 4619ff903dfd9509cac7d4cad20316b916261587 Mon Sep 17 00:00:00 2001 From: GARDAIS Jeremy Date: Wed, 4 Sep 2024 15:34:05 +0200 Subject: [PATCH] Replace flatten jinja filter with list --- CHANGELOG.md | 4 ++++ defaults/main.yml | 2 +- tasks/main.yml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46d035e..609b2a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.2.0 + +### Fix +* Replace flatten jinja filter with **list**. ## v1.1.2 diff --git a/defaults/main.yml b/defaults/main.yml index d06c6f9..be9843b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -11,7 +11,7 @@ # # List of base packages to install. xymon_server__base_packages: - - 'xymon' + - xymon # ]]] # .. envvar:: xymon_server__deploy_state [[[ diff --git a/tasks/main.yml b/tasks/main.yml index 5ce0acb..e8165b6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -6,7 +6,7 @@ # Server Manage required system packages [[[1 - name: Ensure required packages are in there desired state package: - name: '{{ xymon_server__base_packages | flatten }}' + name: '{{ xymon_server__base_packages | list }}' state: '{{ "present" if (xymon_server__deploy_state == "present") else "absent" }}' install_recommends: False register: server_pkg_result