Re: [ansible-project] run command on ansible host with sudo privilege.

2016-10-19 Thread Brian Coca
Can you sudo normally on your machine?

You can also use su or other methods if sudo is not available on your
machine, or execute the ansible itself as root.


--
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/CACVha7cqeHQZz6c8ZqP5SCDQbKU59k_x7BqaKpWU%2BHLkdXHXBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] run command on ansible host with sudo privilege.

2016-10-14 Thread Kevin Parent
Hi guys, I am using:

- hosts: 127.0.0.1
  connection: local

to execute command on the ansible host, I disabled privilege escalation 
because I would get an error message:

"module_stderr": "sudo: effective uid is not 0, is /usr/bin/sudo on a file 
system with the 'nosuid' option set or an NFS file system without root 
privileges?

Im trying to execute the command: npm install --production. but some of the 
packages requires sudo permission to be installed

So now what?

:(.

-- 
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/fe808b3b-3852-41f2-8cdf-c68510fe0e37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.