Hi Frank, I did just test this out on the latest version of devel, and it
appears to be working for me just fine:

# cat fail.yml
- fail:

# cat test.yml
- hosts: localhost
  gather_facts: no
  tasks:
  - block:
    - include: fail.yml
    - debug: msg="you should not see me"
    rescue:
    - debug: msg="here we are in the rescue"
    always:
    - debug: msg="here we are in the always"

TASK [include]
*****************************************************************
included: fail.yml for localhost

TASK [fail]
********************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg":
"Failed as requested from task"}

TASK [debug msg=here we are in the rescue]
*************************************
ok: [localhost] => {
    "changed": false,
    "msg": "here we are in the rescue"
}

TASK [debug msg=here we are in the always]
*************************************
ok: [localhost] => {
    "changed": false,
    "msg": "here we are in the always"
}

Can you test against the latest pull from devel (if you're not already),
and share more information about what the include failures may involve?

Thanks!

James Cammarata
Director, Ansible Core Engineering
github: jimi-c

On Tue, Sep 15, 2015 at 9:58 AM, Brian Coca <bc...@ansible.com> wrote:

> This is a bug, open a github issue please, using this template
> https://raw.githubusercontent.com/ansible/ansible/devel/ISSUE_TEMPLATE.md
> and supplying a minimal reproducible test will help us getting this fixed.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/9b081632-bbe0-4b56-9904-8205ae6b2717%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/9b081632-bbe0-4b56-9904-8205ae6b2717%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAMFyvFiReh%3DgRyx-bN3zPHSOd777ThTDmY92uj%3DucWfzzyRQPA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to