Comments (6)
You really really should be putting your config in /etc/sudoers.d/
There is no need to edit the main /etc/sudoers file.
from mac-dev-playbook.
See above commit; now you can add a custom config like:
configure_sudoers: yes
sudoers_custom_config: |
# Allow users in admin group to use sudo with no password.
%admin ALL=(ALL) NOPASSWD: ALL
And it will dump the string in the config var into a file in /etc/sudoers.d/custom
.
from mac-dev-playbook.
It seems like at least in Catalina it's in /private/etc/sudoers.d
(or is /etc/sudoers.d
an alias to that path?).
I agree, it would be better to add custom config in there instead of modifying the main sudoers
file...
Note that if you have configure_sudoers: false
then no modifications are made (to @mkwardakov 's original issue). Also, I like using a template instead of lineinfile
for any arbitrarily-configurable options.
from mac-dev-playbook.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
from mac-dev-playbook.
Please put the vagrant sudoers config into /etc/sudoers.d/vagrant
instead.
You can validate in the same way with visudo -cf /etc/sudoers.d/vagrant
from mac-dev-playbook.
This issue is no longer marked for closure.
from mac-dev-playbook.
Related Issues (20)
- Execution via SSH with MAS failed - local execution OK HOT 4
- Is it possible to configure this playbook to install and configure VS code? HOT 6
- [ERROR]: failed to download the file: HTTP Error 404: Not Found (when file does exist) HOT 1
- Document running playbook against local macOS VM for testing HOT 3
- Ansible script stuck when running on macOS Big Sur 11.16.8 HOT 2
- Dockutil not working when running through SSH HOT 4
- Dot file fails and crashes runs
- “JJG-Term.terminal” cannot be opened because it is from an unidentified developer.
- Running playbook only achieves taps and cask installation HOT 10
- MariaDB Role for MacOS HOT 2
- Role - AssetCache Server for OSX HOT 2
- dotfile_repo_version default value breaking playbook HOT 2
- become = true needs to be become = True HOT 1
- CI fails installing npm packages HOT 2
- Tapping homebrew/cask is no longer typically necessary HOT 3
- Is the `sed_path` variable still needed HOT 1
- custom fonts
- Discussions are disabled for this project on github repo HOT 2
- mcrypt fails to install on Sanoma HOT 3
- Running straight from clone installation throws exception - Brew Casks Functionality Broken HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mac-dev-playbook.