Hacker symbol

September 8, 2019 ~ 1 min read

Escape square brackets


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

Sebastian BolaƱos

Hi, I'm Sebastian. I'm a software developer from Costa Rica. You can follow me on Twitter. I enjoy working on distributed systems.