Ansible can use the Jinja templating system for variables. If you are not familiar with Jinja, check out Getting Started with Jinja.
In Jinja2, an expression has this structure. This could be a variable, an array, et cetera.
{{ ... }}
For example, let's say a variable named "foo" contains a value of "bar".
vars:
foo: bar
This is how you would use the "foo" variable to return "bar".
{{ foo }}
Here is an example of using a Jinja2 variable in the debug module.
- name: "output the 'foo' variable"
debug:
msg: "The foo variable contains a value of {{ foo }}"