quoting a colon - I can't get it right

17 views
Skip to first unread message

Ed Greenberg

unread,
Jul 10, 2015, 3:37:21 PM7/10/15
to ansible...@googlegroups.com
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

Brian Coca

unread,
Jul 10, 2015, 6:41:38 PM7/10/15
to ansible...@googlegroups.com
action: 'lineinfile dest=/etc/sudoers regexp=^nrpe line="nrpe
ALL=(ALL) NOPASSWD: /usr/sbin/vzlicview" state=present'
> --
> 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-proje...@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
Reply all
Reply to author
Forward
0 new messages