From 6321bd49c49eb2bb436cf7fb4842c4c424198de7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 26 Jun 2024 08:24:57 +0200 Subject: Merging upstream version 24.6.1. Signed-off-by: Daniel Baumann --- examples/playbooks/transform-no-jinja-when.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 examples/playbooks/transform-no-jinja-when.yml (limited to 'examples/playbooks/transform-no-jinja-when.yml') diff --git a/examples/playbooks/transform-no-jinja-when.yml b/examples/playbooks/transform-no-jinja-when.yml new file mode 100644 index 0000000..be8dd05 --- /dev/null +++ b/examples/playbooks/transform-no-jinja-when.yml @@ -0,0 +1,21 @@ +--- +- name: One + hosts: all + tasks: + - name: Test when with jinja2 # noqa: jinja[spacing] + ansible.builtin.debug: + msg: text + when: "{{ false }}" + +- name: Two + hosts: all + roles: + - role: hello + when: "{{ '1' = '1' }}" + +- name: Three + hosts: all + roles: + - role: hello + when: + - "{{ '1' = '1' }}" -- cgit v1.2.3