Discussion:
[ansible-project] quoting a colon - I can't get it right
Ed Greenberg
2015-07-10 19:37:21 UTC
Permalink
Can somebody help me get this to work?

The colon following NOPASSWD is causing me fits.

- name: add permission for nrpe to access vzlicview
action: lineinfile dest=/etc/sudoers regexp=^nrpe line="nrpe
ALL=(ALL) NOPASSWD: /usr/sbin/vzlicview" state=present

I've tried a bunch of permutations of quotes, but no luck.

Many thanks,

Ed G
--
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+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d49bc9cc-ebf5-42a4-8109-a71210d7360a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Brian Coca
2015-07-10 22:41:31 UTC
Permalink
action: 'lineinfile dest=/etc/sudoers regexp=^nrpe line="nrpe
ALL=(ALL) NOPASSWD: /usr/sbin/vzlicview" state=present'
Post by Ed Greenberg
Can somebody help me get this to work?
The colon following NOPASSWD is causing me fits.
- name: add permission for nrpe to access vzlicview
action: lineinfile dest=/etc/sudoers regexp=^nrpe line="nrpe
ALL=(ALL) NOPASSWD: /usr/sbin/vzlicview" state=present
I've tried a bunch of permutations of quotes, but no luck.
Many thanks,
Ed G
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/d49bc9cc-ebf5-42a4-8109-a71210d7360a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8mK7Et3upUSiMnFb3nUVJ%2B_i%3D40i%3D0but2RrZ492rJB0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...