To escape brackets in ansible one needs to use the following syntax:
- name: Get info on docker host and list images
shell: "docker ps --format {{ '{{'}}.Names{{'}}' }}:"
register: result
September 8, 2019 ~ 1 min read
To escape brackets in ansible one needs to use the following syntax:
- name: Get info on docker host and list images
shell: "docker ps --format {{ '{{'}}.Names{{'}}' }}:"
register: result
Hi, I'm Sebastian. I'm a software developer from Costa Rica. You can follow me on Twitter. I enjoy working on distributed systems.