Skip to content

Commit

Permalink
fix: fix ansible2.9 related issue
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Megginson <[email protected]>
  • Loading branch information
radosroka and richm committed Oct 17, 2024
1 parent bfd1267 commit 9e5cb8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9e5cb8c

Please sign in to comment.