mirror of https://github.com/ansible/ansible.git
Fixes #74036
* Add changelog
(cherry picked from commit 664531d7d6
)
pull/74312/head
parent
a81386fa62
commit
2c9389b193
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- Prevent ``ansible_failed_task`` from further templating (https://github.com/ansible/ansible/issues/74036)
|
@ -0,0 +1,17 @@
|
||||
- hosts: localhost
|
||||
gather_facts: false
|
||||
vars:
|
||||
- data: {}
|
||||
tasks:
|
||||
- block:
|
||||
- name: template error
|
||||
debug:
|
||||
msg: "{{ data.value }}"
|
||||
rescue:
|
||||
- debug:
|
||||
msg: "{{ ansible_failed_task.action }}"
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- ansible_failed_task.name == "template error"
|
||||
- ansible_failed_task.action == "debug"
|
Loading…
Reference in New Issue