This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
[BUG]: /etc/sudoers is not set correctly (breaks ansible tasks relying on aur helper) #24
Labels
bug
Something isn't working
Describe the bug
The
/etc/sudoers
generated by the installer includes/etc/sudoers.d
before configuringwheel
:This way, files generated into /etc/sudoers.d will not work as expected. It will break Ansible playbooks that rely on an AUR builder, configured in the wheel, that has to execute pacman without password, as described here: https://wiki.archlinux.org/title/Ansible#AUR (as far as I know, that's the correct way to execute ansible tasks that install packages from AUR)
To reproduce the bug
You have to execute an ansible playbook that relies on the AUR builder user as described here: https://wiki.archlinux.org/title/Ansible#AUR
I could set up one for you, but I don't think that's necessary. The configuration of sudoers as you generate should break also other use cases.
Expected behavior
To fix the problem it is enough to invert the configuration of wheel and the inclusion:
instead of the current
In any case, I see that the other distributions (that ones I've used, including Arch itself) do not append to the end of the file as you do in
jade/src/functions/users.rs
Line 67 in 3e72234
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: