<h5 dir="auto">ISSUE TYPE</h5>

<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ansible</p>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.1.0"><pre class="notranslate"><code class="notranslate">ansible 2.2.1.0
</code></pre></div>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Handlers broken for role with duplicates allowed.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>

<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: localhost
  roles:
    - role: test
      wheel_position: front left
      tags: test
    - role: test
      wheel_position: front right
      tags: test"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span>
  <span class="pl-ent">roles</span>:
    - <span class="pl-ent">role</span>: <span class="pl-s">test</span>
      <span class="pl-ent">wheel_position</span>: <span class="pl-s">front left</span>
      <span class="pl-ent">tags</span>: <span class="pl-s">test</span>
    - <span class="pl-ent">role</span>: <span class="pl-s">test</span>
      <span class="pl-ent">wheel_position</span>: <span class="pl-s">front right</span>
      <span class="pl-ent">tags</span>: <span class="pl-s">test</span></pre></div>
<p dir="auto">See attached zip with this role.</p>

<h5 dir="auto">EXPECTED RESULTS</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RUNNING HANDLER [test/wheel : rotate {{ wheel_position }} wheel] ***************
ok: [localhost] =&gt; {
    &quot;msg&quot;: &quot;rotating front left wheel&quot;
}

RUNNING HANDLER [test/wheel : rotate {{ wheel_position }} wheel] ***************
ok: [localhost] =&gt; {
    &quot;msg&quot;: &quot;rotating front right wheel&quot;
}"><pre class="notranslate"><code class="notranslate">RUNNING HANDLER [test/wheel : rotate {{ wheel_position }} wheel] ***************
ok: [localhost] =&gt; {
    "msg": "rotating front left wheel"
}

RUNNING HANDLER [test/wheel : rotate {{ wheel_position }} wheel] ***************
ok: [localhost] =&gt; {
    "msg": "rotating front right wheel"
}
</code></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>


<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RUNNING HANDLER [test/wheel : rotate {{ wheel_position }} wheel] ***************
ok: [localhost] =&gt; {
    &quot;msg&quot;: &quot;rotating front left wheel&quot;
}"><pre class="notranslate"><code class="notranslate">RUNNING HANDLER [test/wheel : rotate {{ wheel_position }} wheel] ***************
ok: [localhost] =&gt; {
    "msg": "rotating front left wheel"
}
</code></pre></div>
<p dir="auto"><a href="https://github.com/ansible/ansible/files/875533/test.zip">test.zip</a></p>
<h5 dir="auto">Issue Type:</h5>
<p dir="auto">“Feature Idea”</p>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">ansible 1.7 (devel <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/4b8dcb2ae48783778968591a9c5af99531faa31e/hovercard" href="https://github.com/ansible/ansible/commit/4b8dcb2ae48783778968591a9c5af99531faa31e"><tt>4b8dcb2</tt></a>) last updated 2014/07/15 18:25:10 (GMT +200)</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Any supported platform of ansible?</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">Support install in $HOME through setuptools <code class="notranslate">--user</code> parameter.</p>
<p dir="auto">After quite some time of unsuccessfully trying to <code class="notranslate">pip install --user ansible</code> or <code class="notranslate">pip install ansible</code> in a <code class="notranslate">virtualenv</code> I finally came across the mention of running it from a git checkout, however being able to use the 'standard' install locally process would be a nice comfort feature.</p>
<p dir="auto">The setup script keeps trying to overwrite <code class="notranslate">/usr/share/ansible</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="....
creating /usr/share/ansible
error: could not create '/usr/share/ansible': Permission denied"><pre class="notranslate"><code class="notranslate">....
creating /usr/share/ansible
error: could not create '/usr/share/ansible': Permission denied
</code></pre></div>
<p dir="auto">Hopefully <a href="http://legacy.python.org/dev/peps/pep-0370/" rel="nofollow">http://legacy.python.org/dev/peps/pep-0370/</a> provides the information necessary to adjust the installer to not create system wide directories when <code class="notranslate">--user</code> is specified</p>