Putting single quotes around should solve this.
host_ip = '"http://{{ ansible_default_ipv4.address }}"'
Regards,
Uwe
Am 02.11.2016 um 21:04 schrieb ZillaYT:
> I have a template that does has this line
>
> |
> host_ip ="http://{{ ansible_default_ipv4.address }}"
> |
>
> which results into a line in the dest file that has, for example
>
> |
> host_ip =http://10.10.10.10
>
> |
> However, how do modify the template so I retain the "" in the resulting file,
> so it looks like this
>
> |
> host_ip ="http://10.10.10.10"
> |
>
>
>
>
> --
> 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]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/e99098ad-d56c-42ef-8e5e-771650b94358%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/e99098ad-d56c-42ef-8e5e-771650b94358%40googlegroups.com?utm_medium=email&utm_source=footer>.
> 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/50cdb730-cba8-3718-b190-0987c89d9070%40gmail.com.
For more options, visit https://groups.google.com/d/optout.