Vijay Misra [28.07.2017 01:23]:
> 
> Thanks Rick for your help !
> I am using lineinfile now and it works partially, only thing is it fails 
> initially and outputs Sudo: a password requied". 

How does the corresponding line look like in /etc/sudoers? There must be
a "NOPASSWD:" as in

nagios ALL=(ALL) NOPASSWD: /usr/local/bin/dosomething.sh


-- 


-- 
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/055fec50-5a7b-e2d1-bcd3-d650517245bb%40ufz.de.
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to