<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">docker module</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.1.0
  config file = /Users/xxxxxx/Dropbox/devel/xxxxxx/xxxxxx/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.10 (default, Sep 30 2015, 15:50:49) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0
  config file = /Users/xxxxxx/Dropbox/devel/xxxxxx/xxxxxx/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.10 (default, Sep 30 2015, 15:50:49) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults]

inventory = ./contrib/inventory.sh
host_key_checking = False
nocows = 1
forks = 500"><pre class="notranslate"><code class="notranslate">[defaults]

inventory = ./contrib/inventory.sh
host_key_checking = False
nocows = 1
forks = 500
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Host: macOS<br>
Target: EC2 Ubuntu 16.04</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">On an Ubuntu target (running on EC2) with installed docker gathering facts raises a warning about a restricted key <code class="notranslate">ansible_docker_gwbridge</code> being returned in the module data.<br>
AFAICT this supposedly was fixed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="223874982" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/23919" data-hovercard-type="pull_request" data-hovercard-url="/ansible/ansible/pull/23919/hovercard" href="https://github.com/ansible/ansible/pull/23919">#23919</a>.</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: all
  gather_facts: yes
  tasks:
    - shell: echo bla"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">all</span>
  <span class="pl-ent">gather_facts</span>: <span class="pl-s">yes</span>
  <span class="pl-ent">tasks</span>:
    - <span class="pl-ent">shell</span>: <span class="pl-s">echo bla</span></pre></div>
<p dir="auto"><code class="notranslate">ansible-playbook test.yml</code></p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">No warning to be shown</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [all] *************************************************

TASK [Gathering Facts] *******************************************************************************
 [WARNING]: Removed restricted key from module data: ansible_docker_gwbridge = {...}"><pre class="notranslate"><code class="notranslate">PLAY [all] *************************************************

TASK [Gathering Facts] *******************************************************************************
 [WARNING]: Removed restricted key from module data: ansible_docker_gwbridge = {...}
</code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5>

<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>

<p dir="auto">gather_facts and/or something to do w/ docker</p>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.0.0
  config file = /home/vagrant/factom/factom-ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]"><pre class="notranslate"><code class="notranslate">ansible 2.3.0.0
  config file = /home/vagrant/factom/factom-ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>

<p dir="auto">none</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>

<p dir="auto">Ubuntu 16.04.2 LTS (under Vagrant)</p>
<h5 dir="auto">SUMMARY</h5>

<p dir="auto">Getting this in the output when doing <code class="notranslate">gather_facts</code> (basically - <code class="notranslate">ansible -m setup localhost</code>)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [WARNING]: Removed restricted key from module data: ansible_docker_gwbridge = REDACTED"><pre class="notranslate"><code class="notranslate"> [WARNING]: Removed restricted key from module data: ansible_docker_gwbridge = REDACTED
</code></pre></div>
<h5 dir="auto">STEPS TO REPRODUCE</h5>

<p dir="auto">Setup docker, and make sure that the <code class="notranslate">docker_gwbridge</code> network exists.<br>
Run <code class="notranslate">ansible -m setup localhost</code></p>

<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div>

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

<p dir="auto">No warning displayed</p>
<h5 dir="auto">ACTUAL RESULTS</h5>

<p dir="auto">A warning was displayed</p>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [WARNING]: Removed restricted key from module data: ansible_docker_gwbridge = REDACTED"><pre class="notranslate"><code class="notranslate"> [WARNING]: Removed restricted key from module data: ansible_docker_gwbridge = REDACTED
</code></pre></div>