Become (priv escalation) on localhost fails for file content lookup
14 views
Skip to first unread message
Anthony Cheng
unread,
Jul 26, 2016, 3:15:58 PM7/26/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
I think this is a bug (https://github.com/ansible/ansible/issues/16833) where file lookup doesn't get sudo permission on localhost even with become=true. In my testing, shell command on localhost requiring sudo works fine with become=true.
Brian Coca
unread,
Mar 8, 2017, 2:21:27 PM3/8/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
lookups are not affected by become, they always execute in the context
of the user running ansible.