Skip to content

Commit d4e579e

Browse files
Update 02-advanced.md (#1586)
The var attribute in debug module doesnt require "{{ }}" as it runs in Jinja2 context and has an implicit {{ }} wrapping. Removed the wrapping "{{ }}" as it will throw 'template error while templating string'.
1 parent 1868dc7 commit d4e579e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/books/learning_ansible/02-advanced.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ To display a variable, you have to activate the `debug` module as follows:
116116

117117
```
118118
- ansible.builtin.debug:
119-
var: "{{ service['debian'] }}"
119+
var: service['debian']
120120
```
121121

122122
You can also use the variable inside a text:

0 commit comments

Comments
 (0)