community.general
                                
                                 community.general copied to clipboard
                                
                                    community.general copied to clipboard
                            
                            
                            
                        add sudoers file to /etc/sudoers.d
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
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.
cc @JonEllis @JonEllis0 click here for bot help
@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?
@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
@Aalmain This issue is waiting for your response. Please respond or the issue will be closed.
@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.