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.
For more options, visit https://groups.google.com/d/optout.