-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Role leads to doubled inclusion of the sudoers_dropin_dir
#9
Comments
On newer sudo versions the default inclusion statement is `@includedir` instead of `#includedir`. After running the role the directory gets included a second time: ``` @includedir /etc/sudoers.d ``` For compatibility reasons I didn't change the `line` value so on newer installations the `@includedir` will be replaced by the old syntax. Reference: > It is possible to include other sudoers files from within the --> https://www.sudo.ws/docs/man/sudoers.man/#Including_other_files_from_within_sudoers fixes andrewrothstein#9
I incorporated ur suggestion into v1.1.0 that I just published to the galaxy. Can take a peek and lmk if it works for u? |
Doesn't seem to work. :( ansible-sudoers/tasks/main.yml Lines 39 to 53 in b8524d5
This still adds the I think a good way to go about that would be:
But I'm not sure how to do step 1. |
On newer sudo versions the default inclusion statement is
@includedir
instead of#includedir
. After running the role the directory gets included a second time:This leads to annoying warnings in the terminal when aliases get defined:
Reference:
https://www.sudo.ws/docs/man/sudoers.man/#Including_other_files_from_within_sudoers
The text was updated successfully, but these errors were encountered: