mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 18:50:21 -07:00
[doc] fix example: always trigger the handler (#56384)
by default, debug task result isn't changed - add 'changed_when: yes' to trigger handler
This commit is contained in:
parent
674a57c3fa
commit
b3ab83bc70
1 changed files with 1 additions and 0 deletions
|
@ -131,6 +131,7 @@ Another example is how to run handlers after an error occurred :
|
||||||
block:
|
block:
|
||||||
- debug:
|
- debug:
|
||||||
msg: 'I execute normally'
|
msg: 'I execute normally'
|
||||||
|
changed_when: yes
|
||||||
notify: run me even after an error
|
notify: run me even after an error
|
||||||
- command: /bin/false
|
- command: /bin/false
|
||||||
rescue:
|
rescue:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue