Hi Anuj, what version of Ansible are you using?

On Wed, Sep 17, 2014 at 10:30 AM, Anuj Agrawal <[email protected]>
wrote:

> Running a playbook where contents are read from a file. It is an XML file.
>
>
> Playbook yaml:
> ---
>
> - hosts: all
>   gather_facts: false
>
>   vars:
>     XmlFileContents: "{{ lookup('file',
> 'files/spring-proxy-handler-config.xml') }}"
>
>   tasks:
>     - debug: msg="the value of contents is {{XmlFileContents}}"
>
>
> Error:
> fatal: [myhost.com] => A variable inserted a new parameter into the
> module args. Be sure to quote variables if they contain equal signs (for
> example: "{{var}}").
>
> It is a xml file containing some config and the file definitely has some
> equal signs in it. However, I do not understand the error message and,
> hence, cannot figure out a solution to my problem.
>
>  --
> 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/CABnk5p3bezHSMtAeNTVC69YuUqxfHnEBhPzzata_qjornjd%2B2A%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CABnk5p3bezHSMtAeNTVC69YuUqxfHnEBhPzzata_qjornjd%2B2A%40mail.gmail.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/CAMFyvFjzyKAhrHQzynLT9R1dAn6vn5H6iuy7VZm1HBWNs_ii5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to