2 ms·
Does it prompt you for your password during the run or do you have nopasswd set in sudoers?
by wcchandler 6y ago
Does it prompt you for your password during the run or do you have nopasswd set in sudoers?
- frenchtoastto 6y agoThe password for sudo can be passed at run time using a flag or in your variables file.
- 3np 6y agoIf you use `become`, you can use an otherwise non-privileged account with sudo rights. When executed with the --ask-become-pass, ansible will interactively prompt you for your sudo password before commencing. If you feel manually filling in the sudo password every time is cumbersome, you could also integrate it with a yubikey or make it fetch your sudo password automatically via e.g. GNU pass.