>
> 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.
Cheers,
Paul
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/6f98b18a-8b21-48f9-943e-baf01006fe10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.