I just had the same issue and solved it redirecting docker inspect output
to a local file and cat'ing it from there. Is there a general fix for this
meanwhile? Really looks like something is hanging around after docker
inspect execution.
Am Dienstag, 11. November 2014 22:58:23 UTC+1 schrieb simonq:
>
> I get* template error while templating string: unexpected '.' *when
> running this task using ansible 1.8 (devel fa953e162e). Used to work with
> previous version I was running (1d04e4b3d2). Any thoughts?
>
> - name: Get image id
> command: >
> docker inspect -f '{% raw %}{{ .Image }}{% endraw %}' nginx
> register: container_image
>
> - name: Do something with image
> command: echo {{ container_image.stdout }}
>
--
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/4a5d6b1f-d45b-4336-b665-6b307a7b5c35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.