<p dir="auto">Trying the new "docker_login" task against RHEL 7.1 server (Docker 1.7.1). Error message says:</p>
<p dir="auto">"your version of docker-py is outdated: pip install docker-py&gt;=1.1.0"</p>
<p dir="auto">This might be a comeback from issue on RHEL/CentOS from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="97050808" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/1792" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/1792/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/1792">ansible/ansible-modules-core#1792</a>, but I am not sure. In that case it was just a matter of figuring out the "docker-python" version that fit the docker engine at hand.</p>
<p dir="auto">Got a few production servers on RHEL 7.1 (Docker 1.7.1). No version of "docker-python" seems to fit.</p>
<p dir="auto">Querying repos for available versions:</p>
<p dir="auto">repoquery --show-duplicates docker-py*</p>
<p dir="auto">Results in:</p>
<p dir="auto">docker-python-0:0.7.1-37.el7.x86_64<br>
docker-python-0:1.0.0-21.el7.x86_64<br>
docker-python-0:1.0.0-22.el7.x86_64<br>
docker-python-0:1.0.0-35.el7.x86_64<br>
docker-python-0:1.0.0-53.el7.x86_64<br>
docker-python-0:1.4.0-108.el7.x86_64<br>
docker-python-0:1.4.0-115.el7.x86_64</p>
<p dir="auto">This is on RHEL 7.1 and Docker 1.7.1. I can try later on CentOS 7.2 and Docker 1.8.2.</p>
<p dir="auto">BTW, I can't use "pip" on my servers (at least now right now).</p>
<h5 dir="auto">ISSUE TYPE</h5>
<p dir="auto">Feature Idea</p>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">lineinfile 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.0.2.0"><pre class="notranslate"><code class="notranslate">ansible 2.0.2.0
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">lineinfile will only replace the last occur of the regex.  This doesn't provide a solution for cases where there are duplicate lines and you want to replace the line that is not the last occurrence.<br>
The feature suggestion is to add a COUNT option to indicate which occurrence of the regex should be considered a match ( rather than just the last one ).  Default value for COUNT could be -1 to indicate last occurence by default so this update doesn't effect the current module behavior.<br>
Thank you for your consideration.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<h5 dir="auto">EXPECTED RESULTS</h5>
<h5 dir="auto">ACTUAL RESULTS</h5>