<h5 dir="auto">Issue Type:</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">ansible 2.1.0 (devel <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/c5b4e194fa4fdc0b38bbead282c06295633c4727/hovercard" href="https://github.com/ansible/ansible/commit/c5b4e194fa4fdc0b38bbead282c06295633c4727"><tt>c5b4e19</tt></a>) last updated 2016/02/02 20:48:56 (GMT +200)</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Ubuntu 15.10</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">When running a playbook by specifying tags, fact gathering is skipped.</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">Run any playbook with <code class="notranslate">--tags tagname</code>.</p>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">Facts should be gathered like in version before 2.0 when specifying tags.</p>
<h5 dir="auto">Actual Results:</h5>
<p dir="auto">Facts are not gathered when any tag is specified.</p>
<h5 dir="auto">Issue Type:</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">Ansible Version:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.0 (devel 49c15c8137) last updated 2016/01/31 08:09:48 (GMT +000)
  lib/ansible/modules/core: (detached HEAD 93d02189f6) last updated 2016/01/31 08:32:26 (GMT +000)
  lib/ansible/modules/extras: (detached HEAD fff5ae6994) last updated 2016/01/31 08:32:46 (GMT +000)
  config file =
  configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.1.0 (devel 49c15c8137) last updated 2016/01/31 08:09:48 (GMT +000)
  lib/ansible/modules/core: (detached HEAD 93d02189f6) last updated 2016/01/31 08:32:26 (GMT +000)
  lib/ansible/modules/extras: (detached HEAD fff5ae6994) last updated 2016/01/31 08:32:46 (GMT +000)
  config file =
  configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">Ansible Configuration:</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Ubuntu 14.04 LTS</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">The destructive integration test for apt_repository fails as of commit  <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/5587b08335f223fff64f54ced6f2790b3d6ee6f0/hovercard" href="https://github.com/ansible/ansible/commit/5587b08335f223fff64f54ced6f2790b3d6ee6f0"><tt>5587b08</tt></a>.<br>
The test passes using commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/ceef202024423dd35ecef93f947d661f71c33e75/hovercard" href="https://github.com/ansible/ansible/commit/ceef202024423dd35ecef93f947d661f71c33e75"><tt>ceef202</tt></a> and earlier.</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">Run the destructive integration test on test_apt_repository:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook destructive.yml -i inventory -e @integration_config.yml -v --tags test_apt_repository"><pre class="notranslate"><code class="notranslate">ansible-playbook destructive.yml -i inventory -e @integration_config.yml -v --tags test_apt_repository
</code></pre></div>
<h5 dir="auto">Expected Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [test_apt_repository : set_fact] ******************************************
ok: [testhost] =&gt; {&quot;ansible_facts&quot;: {&quot;test_ppa_filename&quot;: &quot;menulibre-dev&quot;, &quot;test_ppa_key&quot;: &quot;A7AD98A1&quot;, &quot;test_ppa_name&quot;: &quot;ppa:menulibre-dev/devel&quot;, &quot;test_ppa_spec&quot;: &quot;deb http://ppa.launchpad.net/menulibre-dev/devel/ubuntu trusty main&quot;}, &quot;changed&quot;: false}"><pre class="notranslate"><code class="notranslate">TASK [test_apt_repository : set_fact] ******************************************
ok: [testhost] =&gt; {"ansible_facts": {"test_ppa_filename": "menulibre-dev", "test_ppa_key": "A7AD98A1", "test_ppa_name": "ppa:menulibre-dev/devel", "test_ppa_spec": "deb http://ppa.launchpad.net/menulibre-dev/devel/ubuntu trusty main"}, "changed": false}
</code></pre></div>
<h5 dir="auto">Actual Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [test_apt_repository : set_fact] ******************************************
fatal: [testhost]: FAILED! =&gt; {&quot;failed&quot;: true, &quot;msg&quot;: &quot;The conditional check 'ansible_distribution in ('Ubuntu', 'Debian')' failed. The error was: error while evaluating conditional (ansible_distribution in ('Ubuntu', 'Debian')): 'ansible_distribution' is undefined\n\nThe error appears to have been in '/root/ansible/test/integration/roles/test_apt_repository/tasks/main.yml': line 19, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- include: 'apt.yml'\n  ^ here\n&quot;}
        to retry, use: --limit @destructive.retry"><pre class="notranslate"><code class="notranslate">TASK [test_apt_repository : set_fact] ******************************************
fatal: [testhost]: FAILED! =&gt; {"failed": true, "msg": "The conditional check 'ansible_distribution in ('Ubuntu', 'Debian')' failed. The error was: error while evaluating conditional (ansible_distribution in ('Ubuntu', 'Debian')): 'ansible_distribution' is undefined\n\nThe error appears to have been in '/root/ansible/test/integration/roles/test_apt_repository/tasks/main.yml': line 19, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- include: 'apt.yml'\n  ^ here\n"}
        to retry, use: --limit @destructive.retry
</code></pre></div>