# Literal curly braces (raw)

Ansible makes heavy use of [Jinja](https://jinja.palletsprojects.com) for templating. Notably, variables can be referenced using double curly braces:

```yaml
name: "{{ app_name }}"
```

If we want to type literal double curly braces, e.g. for use in a `docker` or `podman` format string, we can use a `raw` section:

```yaml
- name: Check if container is running
  command: podman ps -a --filter "name={{ app_name }}" --format "{% raw %}{{.State}}{% endraw %}"
  register: container_state
  changed_when: False
```

`{{ app_name }}` will be replaced with a variable value, while `{{.State}}` won't be.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.eliasnorrby.com/ansible/literal-curly-braces.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
