From 577262c6a4472353af5c86eded2530e7801bc682 Mon Sep 17 00:00:00 2001 From: Wilfried OLLIVIER Date: Wed, 17 Jan 2018 10:11:03 +0100 Subject: [PATCH] Add ansible Jinja2 template trim Signed-off-by: Wilfried OLLIVIER --- src/ops/tools/ansible.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ops/tools/ansible.md b/src/ops/tools/ansible.md index d423a39..268efc1 100644 --- a/src/ops/tools/ansible.md +++ b/src/ops/tools/ansible.md @@ -23,3 +23,14 @@ ansible-playbook -i host.targets -v site.yml --list-hosts ```shell ansible-playbook -i host.targets -v site.yml --limit hostname ``` + +## Jinja2, templates & carriage return + +To tell Jinja2 to not mess with carriage return in templates add + +``` +#jinja2: trim_blocks:False +--- +``` + +at the top of the template file \ No newline at end of file