community.general icon indicating copy to clipboard operation
community.general copied to clipboard

add sudoers file to /etc/sudoers.d

Open Aalmain opened this issue 3 years ago • 4 comments

Summary

I was looking at the module. One feature I like to use for is adding a sudo rules file in the /etc/sudoers.d folder. I would love to see this option added to the existing community module.

Issue Type

Feature Idea

Component Name

sudoers

Additional Information

emulate: visudo --file=/etc/sudoers.d/mongoadmin

Code of Conduct

  • [X] I agree to follow the Ansible Code of Conduct

Aalmain avatar Jul 04 '22 18:07 Aalmain

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot avatar Jul 04 '22 18:07 ansibullbot

cc @JonEllis @JonEllis0 click here for bot help

ansibullbot avatar Jul 04 '22 18:07 ansibullbot

@Aalmain - There has been a recent addition to the module to allow for visudo validation of the rule it's about to add to the sudoers.d directory before it's written to disk.

Is this the feature you're asking for, or a separate way to validate an existing sudoers file?

JonEllis avatar Jul 05 '22 14:07 JonEllis

@Aalmain thanks for raising the issue, but from what you wrote I believe the sudores module does exactly what you want. Could please double check and confirm?

needs_info

russoz avatar Jul 15 '22 11:07 russoz

@Aalmain This issue is waiting for your response. Please respond or the issue will be closed.

click here for bot help

ansibullbot avatar Aug 16 '22 12:08 ansibullbot

@Aalmain You have not responded to information requests in this issue so we will assume it no longer affects you. If you are still interested in this, please create a new issue with the requested information.

click here for bot help

ansibullbot avatar Sep 17 '22 12:09 ansibullbot