Problems with lookups in new versions 1.6.7+

128 views
Skip to first unread message

mic...@gmail.com

unread,
Jul 29, 2014, 4:00:26 AM7/29/14
to ansible...@googlegroups.com
Currently with the new ansible versions 1.6.7+ I have problems in some of my playbooks

I get this error:
A variable inserted a new parameter into the module args. Be sure to quote variables if they contain equal signs (for example: "{{var}}").

Using a playbook as simple as this one:

- hosts: all vars: contents: "{{ lookup('file', '/tmp/foo.txt') }}" tasks:
- shell: echo "the value of foo.txt is {{ contents }}"

Is there any solution for that kind of playbooks?

Thanks.

Michael DeHaan

unread,
Jul 29, 2014, 9:34:30 AM7/29/14
to ansible...@googlegroups.com
Please let us know if this occurs with 1.6.10, previously there was an issue when a file contained an equals sign that should now be resolved.


--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6c3e3df5-055e-4c9a-a3ca-cd059c399cd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages