Open petRUShka opened 5 months ago
possibly related to #74
I've never run Ansible with -K
before. Maybe that's causing it. Without that flag, you are just providing your password to sudo, and so should just be dealing with whatever sudo timeout period you have configured. If the timeout is 0
, it would result in prompting for your password everytime sudo runs.
It is the same with sudo
.
Like this: sudo ansible-playbook -i localhost playbook.yml
.
Absolutely same
I've also never run the playbook with sudo
. I become root via su
and then execute Ansible. I would assume that would have the same result as using sudo
, but maybe there's some difference in how the shell environment gets setup or something. But I'd also check the sudo timeout period you have configured.
It i much better with su
. But there are issues like #125 for example
Whereas I run it with
-K
and prompt sudo passwordon any task like this:
I'm forced to type password. Every task!
What do I do wrong?