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

<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">The shell module is ignoring  proxy environment<br>
I'm working on some server with limited internet connexion (need to use proxy settings)</p>
<p dir="auto">On some module, i need to set environment otherwise i get a timeout.<br>
It's a main issue for me as i don't want to have duplication code and/or specific code for limited internet machine (just need to specifigy http_proxy on them)</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.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.14 (default, Nov  3 2017, 10:55:25) [GCC 7.2.1 20170915 (Red Hat 7.2.1-2)]
"><pre class="notranslate"><code class="notranslate">ansible 2.3.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.14 (default, Nov  3 2017, 10:55:25) [GCC 7.2.1 20170915 (Red Hat 7.2.1-2)]

</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>

<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Tested on remote server Ubuntu 14.04.4 LTS</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Same kinf of issue as for module apt_key  (  <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="265247096" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/31691" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/31691/hovercard" href="https://github.com/ansible/ansible/issues/31691">#31691</a> )</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">groups_var.yml :</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="environment:
  http_proxy: &quot;http://172.31.255.254:8888&quot;
  https_proxy: &quot;http://172.31.255.254:8888&quot;
"><pre class="notranslate"><span class="pl-ent">environment</span>:
  <span class="pl-ent">http_proxy</span>: <span class="pl-s"><span class="pl-pds">"</span>http://172.31.255.254:8888<span class="pl-pds">"</span></span>
  <span class="pl-ent">https_proxy</span>: <span class="pl-s"><span class="pl-pds">"</span>http://172.31.255.254:8888<span class="pl-pds">"</span></span>
</pre></div>
<p dir="auto">This tast is going in timeout :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  - name: Ensure any remote plugins defined are present
    shell: umask 0022; sensu-install -p ftp"><pre class="notranslate"><code class="notranslate">  - name: Ensure any remote plugins defined are present
    shell: umask 0022; sensu-install -p ftp
</code></pre></div>
<p dir="auto">If set this environment in tasks it's working as expected :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  - name: Ensure any remote plugins defined are present
    shell: umask 0022; sensu-install -p ftp
    environment:
      http_proxy: 'http://172.31.255.254:8888'
      https_proxy: 'http://172.31.255.254:8888'
"><pre class="notranslate"><code class="notranslate">  - name: Ensure any remote plugins defined are present
    shell: umask 0022; sensu-install -p ftp
    environment:
      http_proxy: 'http://172.31.255.254:8888'
      https_proxy: 'http://172.31.255.254:8888'

</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Pass thought proxy</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">Timeout as it's not use the proxy environment</p>
<h5 dir="auto">ISSUE TYPE</h5>

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

<p dir="auto">cron</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"><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>

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

<p dir="auto">FreeBSD on server, CentOS on client</p>
<h5 dir="auto">SUMMARY</h5>

<p dir="auto">If cron job is on the last line of crontab, it gets duplicated on every play.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>

<p dir="auto">Apply cron job task while the target crontab is an empty (0 bytes) or nonexistent file.<br>
Repeat play.</p>


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

<p dir="auto">Cron job task is 'ok' on second run, no changes.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>

<p dir="auto">Cron job task appends duplicate job on every run.</p>

<p dir="auto">If I manually add an empty line to the end of the crontab, after managed job, idempotency is restored.</p>