Hm I still get the prob ..

- name: allow gateway
  sudo: yes
  lineinfile:
    line="ALL: 127.0.0.1"
    dest=/etc/hosts.allow


On Saturday, 13 April 2013 03:43:03 UTC+10, Michael DeHaan wrote:
>
> Right, hence "If there is a colon in a YAML line, it must be quoted."
>
>
> On Fri, Apr 12, 2013 at 1:13 PM, Peter Klausner 
> <[email protected]<javascript:>
> > wrote:
>
>> For the record, this syntax did it:
>>
>>    lineinfile: "...    line='foo: bar'  ..."
>>
>> Note that the documentation still samples the wrong syntax:
>> http://ansible.cc/docs/modules.html#lineinfile
>>
>> And note that recent sudo supports the /etc/sudoers.d directory,
>> which obsoletes mucking with lineinfile in this case.
>>
>> -- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>
>
> -- 
> Michael DeHaan <[email protected] <javascript:>>
> CTO, AnsibleWorks, Inc.
> http://www.ansibleworks.com/
>
>  

-- 
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/28583879-97bb-4260-b772-66f05b853a0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to