Something like this should help
Assuming the following variable declaration
vars:
- a_column: "\x3A"
then later you can have:
line="ALL{{ a_column }} ALL"
--
Phil
2014-03-19 1:43 GMT+01:00 Nick Doyle <[email protected]>:
> 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]>
>> 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].
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>
>>
>>
>>
>> --
>> Michael DeHaan <[email protected]>
>>
>> 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.
--
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/CAB1FMuRGujTpYb-RO_puRo9rN%2BDFa2wrf78PzxU7Lm7k%3DvWc7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.