Skip to content

Commit 5a131fc

Browse files
radosrokarichm
authored andcommitted
feat: Add variable that handles semantic check for sudoers
This variable provides semantic check of already configured sudoers in case ansible setup is not needed and it is skipped. Signed-off-by: Radovan Sroka <[email protected]>
1 parent 8652a85 commit 5a131fc

14 files changed

+1326
-3
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ Default: `true`
3131

3232
Type: `bool`
3333

34+
### sudo_check_if_configured
35+
36+
This variable provides semantic check of already configured sudoers in case ansible setup is not needed and it is skipped.
37+
38+
Default: `true`
39+
40+
Type: `bool`
41+
3442
### sudo_remove_unauthorized_included_files
3543

3644
***Dangerous!*** Setting this to `true` removes each existing sudoers file in the `include_directories` dictionary that are not defined in the`sudo_sudoers_files` variable.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SPDX-License-Identifier: MIT
2+
3+
# ansible and dependencies for all supported platforms
4+
ansible ; python_version > "2.6"
5+
idna<2.8 ; python_version < "2.7"
6+
PyYAML<5.1 ; python_version < "2.7"

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
sudo_rewrite_default_sudoers_file: true
33
sudo_remove_unauthorized_included_files: false
44

5+
sudo_check_if_configured: true
6+
57
sudo_visudo_path: /usr/sbin/visudo
68

79
sudo_transactional_update_reboot_ok: null

0 commit comments

Comments
 (0)