On Thu, Sep 18, 2014 at 12:47 AM, James Cammarata <[email protected]>
wrote:

> If you do msg="the value of contents is '{{XmlFileContents}}'" does it
> still raise an error?
>

Yes, it still raises the same error.


>
>
> On Wed, Sep 17, 2014 at 2:11 PM, Anuj Agrawal <[email protected]>
> wrote:
>
>> Observation: It behaves strangely when there are spaces within a pair of
>> quotes. And, my xml file has spaces within quotes in it.
>>
>> On Wed, Sep 17, 2014 at 11:00 PM, Anuj Agrawal <[email protected]>
>> wrote:
>>
>>>
>>>
>>> On Wed, Sep 17, 2014 at 10:52 PM, James Cammarata <
>>> [email protected]> wrote:
>>>
>>>> Hi Anuj, what version of Ansible are you using?
>>>>
>>>
>>> 1.7.1
>>>
>>>
>>>>
>>>> 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
>>>> <https://groups.google.com/d/msgid/ansible-project/CAMFyvFjzyKAhrHQzynLT9R1dAn6vn5H6iuy7VZm1HBWNs_ii5A%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/CABnk5p25MnQpE-%2BdV9SV%2BPkfF%3DbftGsyNSaDoWP_9dDo2j7c3g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/ansible-project/CABnk5p25MnQpE-%2BdV9SV%2BPkfF%3DbftGsyNSaDoWP_9dDo2j7c3g%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/CAMFyvFgjvoeUbTrLwzz_eb-wxAiRxcjzmOUkKHD2snJYFmjf0Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAMFyvFgjvoeUbTrLwzz_eb-wxAiRxcjzmOUkKHD2snJYFmjf0Q%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/CABnk5p3M-OZk0z%3D%3DX-RJWWj5Efhq6eVZtQ1ckztfzL%2BJR54iUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to