diff --git a/.local/share/chezmoi/home/dot_local/bin/executable_install-program b/.local/share/chezmoi/home/dot_local/bin/executable_install-program index 768585da..03409651 100644 --- a/.local/share/chezmoi/home/dot_local/bin/executable_install-program +++ b/.local/share/chezmoi/home/dot_local/bin/executable_install-program @@ -179,7 +179,7 @@ async function afterInstall(packageManager) { if (packageManager === 'appimage') { } else if (packageManager === 'ansible') { await $`logg info 'Ensuring temporary passwordless sudo privileges used by Ansible are removed'` - await $`sudo sed -i '/# TEMPORARY FOR ANSIBLE INSTALL/d' /etc/sudoers` + await $`echo "$(whoami) ALL=(ALL:ALL) NOPASSWD: ALL # TEMPORARY FOR ANSIBLE INSTALL" | sudo tee -a /etc/sudoers` } else if (packageManager === 'apk') { } else if (packageManager === 'apt') { } else if (packageManager === 'basher') {