<h5 dir="auto">ISSUE TYPE</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">core</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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"><pre class="notranslate"><code class="notranslate">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
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Getting error shown below when trying to change user permissions using win_acl<br>
TASK [role1 : set permissions for IIS_IUSRS] *************************<br>
fatal: [hostMachine]: FAILED! =&gt; {"changed": false, "failed": true, "msg": "an exception occured when adding the specified rule"}</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="roles/role1/tasks/main.yml
---
- name: set permissions for IIS-IUSRS
  win_acl: path=&quot;C:\\Users\\James\\Desktop\temp&quot; user='IIS_IUSRS' rights='Read' type=allow state=present"><pre class="notranslate"><code class="notranslate">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
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Permissions changed</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [role1: set permissions for IIS_IUSRS] *************************
task path: /root/ansible/roles/role1/tasks/main.yml:9
fatal: [myMachine]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;failed&quot;: true, &quot;invocation&quot;: {&quot;module_name&quot;: &quot;win_acl&quot;}, &quot;msg&quot;: &quot;an exception occured when adding the specified rule&quot;}
PLAY RECAP *********************************************************************
myMachine                 : ok=1    changed=0    unreachable=0    failed=1
"><pre class="notranslate"><code class="notranslate">TASK [role1: set permissions for IIS_IUSRS] *************************
task path: /root/ansible/roles/role1/tasks/main.yml:9
fatal: [myMachine]: FAILED! =&gt; {"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

</code></pre></div>
<p dir="auto"><strong>Issue Type:</strong></p>
<p dir="auto">Bug Report</p>
<p dir="auto"><strong>Ansible Version:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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"><pre class="notranslate"><code class="notranslate">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
</code></pre></div>
<p dir="auto"><strong>Ansible Configuration:</strong></p>
<p dir="auto">I haven't changed or added any configuration settings to Ansible.</p>
<p dir="auto"><strong>Environment:</strong></p>
<p dir="auto">OSX 10.10.3<br>
Python 2.7.10</p>
<p dir="auto"><strong>Summary:</strong></p>
<p dir="auto">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.</p>
<p dir="auto"><strong>Steps to Reproduce:</strong></p>
<p dir="auto">I set up an example repository to illustrate this bug: <a href="https://github.com/arturhoo/ansible-bug">https://github.com/arturhoo/ansible-bug</a></p>
<p dir="auto"><strong>Expected Results:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ 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"><pre class="notranslate"><code class="notranslate">$ 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
</code></pre></div>
<p dir="auto"><strong>Actual Results:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ 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"><pre class="notranslate"><code class="notranslate">$ 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
</code></pre></div>