Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

core

ANSIBLE VERSION

ansible 2.0.0.2 (stable-2.0.0.1 3b5d7400de) last updated 2016/04/14 085854 (GMT -500)
lib/ansible/modules/core (detached HEAD ce6619bf5d) last updated 2016/04/14 090423 (GMT -500)
lib/ansible/modules/extras (detached HEAD 29af26884e) last updated 2016/04/14 090506 (GMT -500)
config file = /root/ansible/ansible.cfg
configured module search path = Default w/o overrides

CONFIGURATION

OS / ENVIRONMENT

N/A

SUMMARY

Getting error shown below when trying to change user permissions using win_acl

TASK [role1 : set permissions for IIS_IUSRS] *************************

fatal: [hostMachine]: FAILED! => {"changed": false, "failed": true, "msg": "an exception occured when adding the specified rule"}

STEPS TO REPRODUCE

roles/role1/tasks/main.yml
---
- name: set permissions for IIS-IUSRS
win_acl: path="C:\\Users\\James\\Desktop\temp" user='IIS_IUSRS' rights='Read' type=allow state=present

EXPECTED RESULTS

Permissions changed

ACTUAL RESULTS

TASK [role1: set permissions for IIS_IUSRS] *************************
task path: /root/ansible/roles/role1/tasks/main.yml:9
fatal: [myMachine]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_name": "win_acl"}, "msg": "an exception occured when adding the specified rule"}
PLAY RECAP *********************************************************************
myMachine : ok=1 changed=0 unreachable=0 failed=1

Issue 2:
Issue Type:

Bug Report

Ansible Version:

ansible 1.9.2 (detached HEAD 982bad7886) last updated 2015/06/19 17:29:23 (GMT -200)
lib/ansible/modules/core: (detached HEAD 016ad8a1cb) last updated 2015/06/19 17:29:29 (GMT -200)
lib/ansible/modules/extras: (detached HEAD 86d9bbae52) last updated 2015/06/19 17:29:34 (GMT -200)
v2/ansible/modules/core: (detached HEAD 34784b7a61) last updated 2015/06/19 17:29:40 (GMT -200)
v2/ansible/modules/extras: (detached HEAD 46e316a20a) last updated 2015/06/19 17:29:47 (GMT -200)
configured module search path = None

Ansible Configuration:

I haven't changed or added any configuration settings to Ansible.

Environment:

OSX 10.10.3

Python 2.7.10

Summary:

A handler that is firstly not notified due to a skipped and depended upon task, but later notified through the same task (directly invoked), does not run at the of the play.

Steps to Reproduce:

I set up an example repository to illustrate this bug: https://github.com/arturhoo/ansible-bug

Expected Results:

$ ansible-playbook -i 'localhost,' --connection=local playbook.yml

PLAY [all] ********************************************************************

GATHERING FACTS ***************************************************************
ok: [localhost]

TASK: [one | create bar file] *************************************************
skipping: [localhost]

TASK: [one | echo foo to bar file] ********************************************
skipping: [localhost]

TASK: [two | create xpto file] ************************************************
changed: [localhost]

TASK: [one | create bar file] *************************************************
changed: [localhost]

TASK: [one | echo foo to bar file] ********************************************
changed: [localhost]

NOTIFIED: [one | handle this] *************************************************
changed: [localhost]

PLAY RECAP ********************************************************************
localhost : ok=4 changed=4 unreachable=0 failed=0

Actual Results:

$ ansible-playbook -i 'localhost,' --connection=local playbook.yml

PLAY [all] ********************************************************************

GATHERING FACTS ***************************************************************
ok: [localhost]

TASK: [one | create bar file] *************************************************
skipping: [localhost]

TASK: [one | echo foo to bar file] ********************************************
skipping: [localhost]

TASK: [two | create xpto file] ************************************************
changed: [localhost]

TASK: [one | create bar file] *************************************************
changed: [localhost]

TASK: [one | echo foo to bar file] ********************************************
changed: [localhost]

NOTIFIED: [one | handle this] *************************************************
skipping: [localhost]

PLAY RECAP ********************************************************************
localhost : ok=4 changed=3 unreachable=0 failed=0