Anuj Agrawal <[email protected]> napisał:
>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.
A workaround for this is using complex args:
- debug:
msg: '{{ XmlFileContents }}'
--
Wysłane za pomocą K-9 Mail.
--
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/05b243e9-fefd-4bc0-8b16-9ffda666bede%40email.android.com.
For more options, visit https://groups.google.com/d/optout.