What is block's rescue supposed behavior?

15 views
Skip to first unread message

Konstantin Suvorov

unread,
May 24, 2016, 6:48:06 AM5/24/16
to Ansible Project
Hello.

    - block:
       
- fail: msg=fail
     
rescue:
       
- debug: msg=rescue
      always
:
       
- debug: msg=always

     
- debug: msg=after-block

Seems rescue block bring node back into health state and continue execution of tasks, so after-block debug is executed (tested with ansible 2.1 RC4).
If I add fail task inside rescue – it will stop execution after always task.

Is it supposed behavior?
Reply all
Reply to author
Forward
0 new messages