> When i am directly on the target host as user john "sudo yum install htop" 
> works without asking for a password so i guess NOPASSWD is set for john. I 
> don't even have a password. I connect via ssh key.

Ansible doesn't do this:

    ssh john@a-host sudo yum install htop

Ansible uploads a python script which is run using sudo. Something like:

    scp tmp-script john@a-host:~/.ansible/tmp/...
    ssh john@a-host sudo python ~/.ansble/tmp/...

So sudo NOPASSWD for yum doesn't help.


You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to