From 803340eec61a2bbd84dc3cd26408fa2666f73b4d Mon Sep 17 00:00:00 2001 From: Dave_Barnabas <39591292+DavisBarnabas@users.noreply.github.com> Date: Tue, 14 Nov 2023 12:43:18 +0530 Subject: [PATCH] Update 02-advanced.md 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'. --- docs/books/learning_ansible/02-advanced.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/books/learning_ansible/02-advanced.md b/docs/books/learning_ansible/02-advanced.md index 63357e42bc..cbcffc508b 100644 --- a/docs/books/learning_ansible/02-advanced.md +++ b/docs/books/learning_ansible/02-advanced.md @@ -116,7 +116,7 @@ To display a variable, you have to activate the `debug` module as follows: ``` - ansible.builtin.debug: - var: "{{ service['debian'] }}" + var: service['debian'] ``` You can also use the variable inside a text: