Please see post: *request help with configuration issue: 'sudo: True' has no effect *which has been resolved. This post was accidentally sent before completed.
On Thursday, April 17, 2014 6:17:11 PM UTC-4, Michael DeHaan wrote: > > 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. > > > On Thu, Apr 17, 2014 at 2:41 PM, Adam Morris <[email protected]<javascript:> > > wrote: > >> 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 >> >> On Thursday, April 17, 2014 10:06:05 AM UTC-7, Brice Burgess wrote: >>> >>> Joel, >>> >>> Did you try adding `sudo_user: jhughes` to the task? >>> >>> On Sunday, April 13, 2014 12:53:18 AM UTC-5, Joel Hughes wrote: >>>> >>>> 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 >>>> >>> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/f4f4e6ad-7c6f-41b1-9fe9-c4eeb5f8ef8e%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/f4f4e6ad-7c6f-41b1-9fe9-c4eeb5f8ef8e%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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/1a53c211-1047-4f16-8fe0-4cc223255df8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
