The issue was the setting of sudo_user, as you described. I had set it in ansible.cfg and then was adding/removing in the playbook during troubleshooting. With sudo_user set to the default or 'root' in ansible.cfg, 'sudo: True' operations are behaving as expected. Thanks for leading me in the correct direction. Joel
On Monday, April 14, 2014 4:39:24 PM UTC-4, Adam Morris wrote: > > > > On Saturday, April 12, 2014 11:18:29 PM UTC-7, Joel Hughes wrote: >> >> >> sudo_user: jhughes >> >> >> > This is working exactly as directed... I would remove sudo_user: myself > but you could alternately set it to sudo_user: root. > > The default for sudo is for it to switch to root, but if you set sudo_user > it's the equivalent of running sudo -u <user_name> which runs the command > as the provided <user_name>. > > I hope that this helps, > > Adam > > -- 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/acc58392-570a-41eb-9515-b8670b6d296a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
