Hi Brian, Not really. If sudo_user is set only at the play level the sudo user is root:
------- excerpt from the stdout when running with -vvvv -------- "[sudo via ansible, key=vksodlsoxtyvcfgxeosslbsttkfqyzcb] password: " -u root /bin/sh -c --------------------------- If it is set at the task level too, it's correct: --------------------------- "[sudo via ansible, key=zprftkljnlzogwijomrqivtiiebwqqqs] password: " -u postgres /bin/sh -c --------------------------- Jacek W dniu środa, 18 marca 2015 14:10:38 UTC użytkownik Brian Coca napisał: > > So issue seems to be when sudo_user is set at role level, not at play > level. > > > -- > Brian Coca > -- 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 https://groups.google.com/d/msgid/ansible-project/970ae5d8-58ad-4744-824b-0010469e4245%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.