Hi James,
Yes it seems something is different regarding this on devel branch. But either I don't understand what it does or something is not right.
In the current version (2.0.0.0) if I try to use "any_errors_fatal" in a block level it fails because this is not an option to be usable on a block.
With the devel branch this changes. Now I can use this option but it doesn't do what I was expecting.
Now if one of the hosts fails, it make the rest fail and stop executing the playbook. But I am not able to have it execute the "rescue" part.
- name: deploy
hosts: all
gather_facts: True
tasks:
- block:
- file: path=/tmp/testfolder1 state=directory
rescue:
- file: path=/tmp/testfolder2 state=directory
any_errors_fatal: yes
In this example, if I make it fail creating "/tmp/testfolder1", it will not be creating "/tmp/testfolder2".
Is this the way it is supposed to work? or should I open an issue on github?
Thanks!