From 9e5cb8c97ceaac338a633d5a06a2f7ac511b0e02 Mon Sep 17 00:00:00 2001 From: Radovan Sroka Date: Thu, 17 Oct 2024 13:05:02 +0200 Subject: [PATCH] fix: fix ansible2.9 related issue Co-authored-by: Richard Megginson --- tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index f32864c..556f269 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -16,7 +16,8 @@ - sudo_check_if_configured | bool vars: __actual: "{{ ansible_facts['sudoers'].sudoers_files | map('dict2items') | - map('rejectattr', 'key', 'match', '^include_files$') | map('items2dict') }}" + map('rejectattr', 'key', 'match', '^include_files$') | map('list') | + map('items2dict') | list }}" - name: Ensure sudo is installed package: