1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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'"