Skip to content
5 changes: 5 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ sudoers_sudoers:
privileges: "{{ sudoers_sudoers_preset_privileges }}"

sudoers_sudoers_d_files: {}

sudoers_include_variables: true
sudoers_install: true
sudoers_configuration_sudoers_d: true
sudoers_configuration_sudoers: true
4 changes: 4 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- "_{{ ansible_distribution_release }}.yml"
- "_{{ ansible_distribution | lower }}.yml"
- _default.yml
when: sudoers_include_variables | bool
tags:
- configuration
- sudoers
Expand All @@ -17,6 +18,7 @@
state: "{{ apt_install_state | default('latest') }}"
update_cache: true
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
when: sudoers_install | bool
tags:
- configuration
- sudoers
Expand Down Expand Up @@ -45,6 +47,7 @@
group: root
mode: 0440
with_dict: "{{ sudoers_sudoers_d_files }}"
when: sudoers_configuration_sudoers_d | bool
tags:
- configuration
- sudoers
Expand All @@ -59,6 +62,7 @@
owner: root
group: root
mode: 0440
when: sudoers_configuration_sudoers | bool
tags:
- configuration
- sudoers
Expand Down