Indeed it works. Thanks gentlemen
On Wednesday, 5 March 2014 21:24:16 UTC, Makimoto Marakatti wrote: > > Well that is a tip I was not expecting! :) > will try that tomorrow at work. > > But if it asks you the sudo password and you need to explicitly tell > ansible-playbook to use sudo, isnt that a bit counterintuitive? > Right now, it asks the sudo password, but it's not using it for anything. > What's the point of asking then?? > > Anyways, thanks for the answer. Will try and report back tomorrow. > > > On Wednesday, 5 March 2014 18:41:11 UTC, Adam Morris wrote: >> >> >> >> On Wednesday, March 5, 2014 7:30:57 AM UTC-8, Makimoto Marakatti wrote: >>> >>> I've got >>> >>> ask_sudo_pass = True >>> >>> on ~/.ansible.cfg >>> >>> Both are run as the user 'ansible'. >>> So I'm guessing I can rule that out? >>> >> >> No. ask_sudo_pass just tells it to ask you for the sudo password. It >> doesn't tell it to use sudo try adding -s to your ansible-playbook command. >> >> 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/3ef3fb4a-79b0-4a8e-91f0-1ab281eda506%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
