mirror of https://github.com/ansible/ansible.git
(cherry picked from commit 664531d7d6
)
pull/74519/head
parent
cd81eddb80
commit
316dbd50ed
@ -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