Skip to content

Commit

Permalink
[doc] fix example: always trigger the handler (ansible#56384)
Browse files Browse the repository at this point in the history
by default, debug task result isn't changed - add 'changed_when: yes' to trigger handler
  • Loading branch information
pilou- authored and acozine committed May 14, 2019
1 parent 674a57c commit b3ab83b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/docsite/rst/user_guide/playbooks_blocks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ Another example is how to run handlers after an error occurred :
block:
- debug:
msg: 'I execute normally'
changed_when: yes
notify: run me even after an error
- command: /bin/false
rescue:
Expand Down

0 comments on commit b3ab83b

Please sign in to comment.