Re: [ansible-project] How to escape a variable?

2014-08-08 Thread Vijay Korapaty
local_action: shell docker inspect --format={{ '{{.Id}}' }} {{ docker_image_name }} | cut register: docker_image_id On Fri, Aug 8, 2014 at 1:04 PM, Vijay Korapaty mailto:ansiblel...@korapaty.com>> wrote: > I'm trying to execute

[ansible-project] How to escape a variable?

2014-08-08 Thread Vijay Korapaty
I'm trying to execute the following task: - name: obtain image id local_action: shell docker inspect --format={{.Id}} {{ docker_image_name }} | cut register: docker_image_id where '{{.Id}}' should not be considered as a variable. I've tried escaping it in this fashion: {{ '{