News for hackers. Stuff that matters.
Re:Getting Started with Ansible by wcchandler on Tuesday November 17, 2020 @08:43AM (#25123612)
Does it prompt you for your password during the run or do you have nopasswd set in sudoers?
Re:Getting Started with Ansible by 3np on Tuesday November 17, 2020 @09:08AM (#25123864)
If 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.

Re:Getting Started with Ansible by frenchtoastto on Tuesday November 17, 2020 @08:56AM (#25123742)
The password for sudo can be passed at run time using a flag or in your variables file.