thanks Morgan, the single quote is the solution here.
-- Phil 2014-03-19 17:20 GMT+01:00 C. Morgan Hamill <[email protected]>: > Excerpts from Philippe Eveque's message of 2014-03-19 12:14:31 -0400: > > lineinfile: > > > dest=/etc/hosts.deny > > state=present > > regexp="^ALL:\s+ALL" > > line="ALL: ALL" > > Thought I'd add how I handle this: > > lineinfile: > dest: /etc/host.deny > state: present > regexp: '^ALL:\s+ALL' > line: 'ALL: ALL' > > I personally find it slightly more readable. > -- > Morgan Hamill > > -- > 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/1395245970-sup-6494%40al.wesleyan.edu > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAB1FMuSqjFbFMK3RdYPDfYdOhD%3DWHX-b2c8%3DkfpxKS_zO3cROA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
