I thought the -b and --become do the same thing. If I run this command as root, it works. If I run it as a non-root user, I get the MODULE FAILURE error.
ansible localhost -a '/bin/cat /etc/shadow' --become --become-user root On Tuesday, September 13, 2016 at 12:24:20 PM UTC-5, Brian Coca wrote: > > Using --become-user only sets the user, it does not force using become, > you need --become to do that. > > This is because you can set using privilege escalation in the inventory > also and this lets you mix/match settings. > > > ---------- > 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 [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/6f97a556-8150-4fd3-ab53-9f8325d4687b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
