unable to configure ansible properly - sudo: True has no effect on any task

sudo: True has no effect on any task
This is a configuration issue, but after many hours I’m unable to locate it.

Tested against ansible 1.4.5, 1.5.0 through 1.5.4 and development branch so I’m sure it’s not ansible.
Hosts: Ubuntu 12.04.4 fully patched.
ssh and sudo both passwordless

cat /etc/sudoers.d/admin
jhughes ALL=(ALL) NOPASSWD:ALL

ansible.cfg delta
hostfile

Joel,

Did you try adding sudo_user: jhughes to the task?

That would cause it to run sudo to become jhughes before running the command.

Probably not what is wanted.

I’m not sure what you’re expecting differently… Are you getting errors?

What are the errors? What are the tasks?

Adam

Ansible does know that if logging in as foo and sudo’ing to foo, it’s smart enough to avoid doing the sudo at all.

This has been a point of contention with one user’s SELinux environment where logging in as root didn’t get full privs until sudoing, at which point it was proposed a setting to control this behavior.

That all being said, I’m not sure this is what you were seeing, but it can explain scenarios when ansible ignores a sudo statement.

Otherwise, sudo: True is functional, and we’d need to see more detail.

Please see post: request help with configuration issue: ‘sudo: True’ has no effect which has been resolved.
This post was accidentally sent before completed.