<h5 dir="auto">Issue Type:</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">Ansible Version:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ansible --version
ansible 2.0.0 (devel a567f28657) last updated 2015/10/16 13:17:37 (GMT -500)
  lib/ansible/modules/core: (detached HEAD 5da7cf696c) last updated 2015/10/16 13:17:37 (GMT -500)
  lib/ansible/modules/extras: (detached HEAD 8ce3104bc5) last updated 2015/10/14 12:09:50 (GMT -500)
  config file = /Volumes/Warrior1TB/Users/tanner/projects/ansible.git/playbooks.git/ansible.cfg
  configured module search path = None"><pre class="notranslate"><code class="notranslate"> ansible --version
ansible 2.0.0 (devel a567f28657) last updated 2015/10/16 13:17:37 (GMT -500)
  lib/ansible/modules/core: (detached HEAD 5da7cf696c) last updated 2015/10/16 13:17:37 (GMT -500)
  lib/ansible/modules/extras: (detached HEAD 8ce3104bc5) last updated 2015/10/14 12:09:50 (GMT -500)
  config file = /Volumes/Warrior1TB/Users/tanner/projects/ansible.git/playbooks.git/ansible.cfg
  configured module search path = None
</code></pre></div>
<h5 dir="auto">Ansible Configuration:</h5>
<p dir="auto">Using the ansible.cfg from git with the following change (I need ssh to ForwardAgent=yes) I still get the import warnings.</p>
<p dir="auto">ssh_args = -o ControlMaster=auto -o ControlPersist=600s -o ForwardAgent=yes</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">OS X Yosemite 10.11</p>
<p dir="auto">$ python -V<br>
Python 2.7.10</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">Started a <a href="https://groups.google.com/forum/#!topic/ansible-devel/LFWEY_gQFTM" rel="nofollow">discussion</a> on the Ansible Development Google Group. Wasn't sure if the problem is Ansible or my upgrade to El Capitan (10.11) using bisect I think I've narrowed the problem down to a problem in Ansible.</p>
<p dir="auto">Any play or playbook throws RuntimeWarning.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import from ansible import errors"><pre class="notranslate"><code class="notranslate">RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import from ansible import errors
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ git bisect good
d923d05a33431e9c4c9d3d03bdb4bbdfd4b90447 is the first bad commit
commit d923d05a33431e9c4c9d3d03bdb4bbdfd4b90447"><pre class="notranslate"><code class="notranslate">$ git bisect good
d923d05a33431e9c4c9d3d03bdb4bbdfd4b90447 is the first bad commit
commit d923d05a33431e9c4c9d3d03bdb4bbdfd4b90447
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ git bisect log
git bisect start
# bad: [aee6de5a7696520f1fea00a145af055732d8e570] group_names should not include implied 'all', fixes #12763
git bisect bad aee6de5a7696520f1fea00a145af055732d8e570
# good: [cb9f350c8fa74225c3e4e23e720fbbd7e5792548] Merge pull request #12720 from jhawkesworth/test_amc_2147
git bisect good cb9f350c8fa74225c3e4e23e720fbbd7e5792548
# bad: [0526b43b5fd61d2894026960e433b0cc9b72a692] Merge pull request #12757 from mgedmin/py3k
git bisect bad 0526b43b5fd61d2894026960e433b0cc9b72a692
# bad: [ab569cea2253fd70bc8b3f0a2540ac0d075e8c4a] Move to_str alias into ansible.utils.unicode
git bisect bad ab569cea2253fd70bc8b3f0a2540ac0d075e8c4a
# bad: [85abd61001ffa59f92db56080f04fa4287460fe0] Add some more info to docstring
git bisect bad 85abd61001ffa59f92db56080f04fa4287460fe0
# bad: [d923d05a33431e9c4c9d3d03bdb4bbdfd4b90447] Reworking the way all() works in plugin_loader
git bisect bad d923d05a33431e9c4c9d3d03bdb4bbdfd4b90447
# good: [45b803efb44b7cf744ccc365f52f3adbfafed0a0] Properly use test_loader from SharedPluginLoaderObj
git bisect good 45b803efb44b7cf744ccc365f52f3adbfafed0a0
# first bad commit: [d923d05a33431e9c4c9d3d03bdb4bbdfd4b90447] Reworking the way all() works in plugin_loader"><pre class="notranslate"><code class="notranslate">$ git bisect log
git bisect start
# bad: [aee6de5a7696520f1fea00a145af055732d8e570] group_names should not include implied 'all', fixes #12763
git bisect bad aee6de5a7696520f1fea00a145af055732d8e570
# good: [cb9f350c8fa74225c3e4e23e720fbbd7e5792548] Merge pull request #12720 from jhawkesworth/test_amc_2147
git bisect good cb9f350c8fa74225c3e4e23e720fbbd7e5792548
# bad: [0526b43b5fd61d2894026960e433b0cc9b72a692] Merge pull request #12757 from mgedmin/py3k
git bisect bad 0526b43b5fd61d2894026960e433b0cc9b72a692
# bad: [ab569cea2253fd70bc8b3f0a2540ac0d075e8c4a] Move to_str alias into ansible.utils.unicode
git bisect bad ab569cea2253fd70bc8b3f0a2540ac0d075e8c4a
# bad: [85abd61001ffa59f92db56080f04fa4287460fe0] Add some more info to docstring
git bisect bad 85abd61001ffa59f92db56080f04fa4287460fe0
# bad: [d923d05a33431e9c4c9d3d03bdb4bbdfd4b90447] Reworking the way all() works in plugin_loader
git bisect bad d923d05a33431e9c4c9d3d03bdb4bbdfd4b90447
# good: [45b803efb44b7cf744ccc365f52f3adbfafed0a0] Properly use test_loader from SharedPluginLoaderObj
git bisect good 45b803efb44b7cf744ccc365f52f3adbfafed0a0
# first bad commit: [d923d05a33431e9c4c9d3d03bdb4bbdfd4b90447] Reworking the way all() works in plugin_loader
</code></pre></div>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">Any play or playbook produces this Warning.</p>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">No warnings.</p>
<h5 dir="auto">Actual Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/playbooks.git/callback_plugins/fix-ssl.py:1: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/playbooks' not found while handling absolute import
  import ssl
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/context_demo.py:18: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.plugins.callback import CallbackBase
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/hipchat.py:18: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import os
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/hipchat.py:19: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import urllib
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/hipchat.py:22: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import prettytable
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/hipchat.py:27: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.plugins.callback import CallbackBase
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/hipchat.py:28: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.module_utils.urls import open_url
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/log_plays.py:18: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import os
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/log_plays.py:19: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import time
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/log_plays.py:20: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import json
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/log_plays.py:22: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.utils.unicode import to_bytes
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/log_plays.py:23: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.plugins.callback import CallbackBase
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/mail.py:19: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import os
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/mail.py:20: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import smtplib
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/mail.py:21: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import json
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/mail.py:23: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.utils.unicode import to_bytes
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/mail.py:24: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.plugins.callback import CallbackBase
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/osx_say.py:19: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import subprocess
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/osx_say.py:20: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import os
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/osx_say.py:22: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.plugins.callback import CallbackBase
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/profile_tasks.py:21: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import time
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/profile_tasks.py:23: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.plugins.callback import CallbackBase
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/syslog_json.py:1: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import os
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/syslog_json.py:2: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import json
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/syslog_json.py:4: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import logging
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/syslog_json.py:5: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import logging.handlers
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/syslog_json.py:7: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import socket
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/syslog_json.py:9: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.plugins.callback import CallbackBase
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/timer.py:1: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import os
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/timer.py:2: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import datetime
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/timer.py:3: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from datetime import datetime, timedelta
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/timer.py:5: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.plugins.callback import CallbackBase"><pre class="notranslate"><code class="notranslate">/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/playbooks.git/callback_plugins/fix-ssl.py:1: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/playbooks' not found while handling absolute import
  import ssl
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/context_demo.py:18: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.plugins.callback import CallbackBase
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/hipchat.py:18: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import os
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/hipchat.py:19: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import urllib
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/hipchat.py:22: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import prettytable
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/hipchat.py:27: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.plugins.callback import CallbackBase
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/hipchat.py:28: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.module_utils.urls import open_url
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/log_plays.py:18: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import os
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/log_plays.py:19: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import time
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/log_plays.py:20: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import json
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/log_plays.py:22: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.utils.unicode import to_bytes
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/log_plays.py:23: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.plugins.callback import CallbackBase
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/mail.py:19: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import os
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/mail.py:20: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import smtplib
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/mail.py:21: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import json
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/mail.py:23: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.utils.unicode import to_bytes
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/mail.py:24: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.plugins.callback import CallbackBase
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/osx_say.py:19: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import subprocess
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/osx_say.py:20: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import os
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/osx_say.py:22: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.plugins.callback import CallbackBase
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/profile_tasks.py:21: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import time
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/profile_tasks.py:23: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.plugins.callback import CallbackBase
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/syslog_json.py:1: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import os
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/syslog_json.py:2: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import json
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/syslog_json.py:4: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import logging
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/syslog_json.py:5: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import logging.handlers
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/syslog_json.py:7: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import socket
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/syslog_json.py:9: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.plugins.callback import CallbackBase
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/timer.py:1: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import os
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/timer.py:2: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  import datetime
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/timer.py:3: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from datetime import datetime, timedelta
/Volumes/Warrior1TB/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/callback/timer.py:5: RuntimeWarning: Parent module '/Volumes/Warrior1TB/Users/tanner/projects/ansible' not found while handling absolute import
  from ansible.plugins.callback import CallbackBase
</code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ec2_group module</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">2.3</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/edsonmarquezani/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/edsonmarquezani">@edsonmarquezani</a> on 2015-11-28T16:16:27Z<br>
It seems there's some inconsistency regarding EC2 Secutiry Groups rules idempotence (ec2_group module).</p>
<p dir="auto">Assume the following task (my real code):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: &quot;scg-{{ environment_short }}-pub-ec2-{{ group }}-webapp&quot;
  ec2_group:
    name: &quot;scg-{{ environment_short }}-pub-ec2-{{ group }}-webapp&quot;
    vpc_id: &quot;{{ vpc.vpc_id }}&quot;
    region: &quot;{{ aws_region }}&quot;
    description: &quot;Security group for {{ group }} web application servers.&quot;
    rules:
      - proto: tcp
        from_port: 80
        to_port: 80
        group_id: &quot;scg-{{ environment_short }}-pub-elb-{{ group }}-webapp&quot;
      - proto: tcp
        from_port: 443
        to_port: 443
        group_id: &quot;scg-{{ environment_short }}-pub-elb-{{ group }}-webapp&quot;
  register: sg3"><pre class="notranslate"><code class="notranslate">- name: "scg-{{ environment_short }}-pub-ec2-{{ group }}-webapp"
  ec2_group:
    name: "scg-{{ environment_short }}-pub-ec2-{{ group }}-webapp"
    vpc_id: "{{ vpc.vpc_id }}"
    region: "{{ aws_region }}"
    description: "Security group for {{ group }} web application servers."
    rules:
      - proto: tcp
        from_port: 80
        to_port: 80
        group_id: "scg-{{ environment_short }}-pub-elb-{{ group }}-webapp"
      - proto: tcp
        from_port: 443
        to_port: 443
        group_id: "scg-{{ environment_short }}-pub-elb-{{ group }}-webapp"
  register: sg3
</code></pre></div>
<p dir="auto">First time I run it, the security group is successfully created. If I run it again, then I get the following error.</p>
<p dir="auto"><strong><code class="notranslate">TASK [scg-prd-pub-ec2-tvk-webapp]  An exception occurred during task execution. To see the full traceback, use -vvv. The error was: &lt;Response&gt;&lt;Errors&gt;&lt;Error&gt;&lt;Code&gt;InvalidPermission.Duplicate&lt;/Code&gt;&lt;Message&gt;the specified rule "peer: sg-795f0c1f, TCP, from port: 80, to port: 80, ALLOW" already exists&lt;/Message&gt;&lt;/Error&gt;&lt;/Errors&gt;&lt;RequestID&gt;d2916a1d-923d-4182-a528-5863973e7f2e&lt;/RequestID&gt;&lt;/Response&gt; fatal: [127.0.0.1]: FAILED! =&gt; {"changed": false, "failed": true, "parsed": false}</code></strong></p>
<p dir="auto">What is weird is that I don't get an error like that for all my security groups, but just some of them. I have other tasks on the playbook with ingress rules like that, which keep working after being created.</p>
<p dir="auto">I'm using Ansible 2.0.0-0.6.rc1 and Boto 2.38, but I have had the same problem with previous version of Ansible as well.</p>
<p dir="auto">Thanks.</p>
<p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="119304341" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/2576" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/2576/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/2576">ansible/ansible-modules-core#2576</a></p>