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: