<p dir="auto">A little background of what is happening:</p>
<p dir="auto">Inventory:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[chroot]
/tmp/tmpZhhROE/build    ansible_connection=chroot"><pre class="notranslate"><code class="notranslate">[chroot]
/tmp/tmpZhhROE/build    ansible_connection=chroot
</code></pre></div>
<p dir="auto">Playbook:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="hosts: chroot
tasks:
  - name: Copy image files to destination
    synchronize: src={{ app_image }}/ dest=/"><pre class="notranslate"><code class="notranslate">hosts: chroot
tasks:
  - name: Copy image files to destination
    synchronize: src={{ app_image }}/ dest=/
</code></pre></div>
<p dir="auto">Error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK: [Copy image files to destination] ***************************************
failed: [/tmp/tmpZhhROE/build] =&gt; {&quot;cmd&quot;: &quot;rsync --delay-updates --compress --      timeout=10 --archive --rsh 'ssh  -o StrictHostKeyChecking=no' --out- format='&lt;&lt;CHANGED&gt;&gt;%i %n%L' /root/stacks/test/stacker/image/  root@/tmp/tmpZhhROE/build:/&quot;, &quot;failed&quot;: true, &quot;item&quot;: &quot;&quot;, &quot;rc&quot;: 12}
msg: rsync: mkdir &quot;/tmp/root@/tmp/tmpZhhROE/build:&quot; failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(595) [Receiver=3.0.7]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=3.0.7]"><pre class="notranslate"><code class="notranslate">TASK: [Copy image files to destination] ***************************************
failed: [/tmp/tmpZhhROE/build] =&gt; {"cmd": "rsync --delay-updates --compress --      timeout=10 --archive --rsh 'ssh  -o StrictHostKeyChecking=no' --out- format='&lt;&lt;CHANGED&gt;&gt;%i %n%L' /root/stacks/test/stacker/image/  root@/tmp/tmpZhhROE/build:/", "failed": true, "item": "", "rc": 12}
msg: rsync: mkdir "/tmp/root@/tmp/tmpZhhROE/build:" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(595) [Receiver=3.0.7]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=3.0.7]
</code></pre></div>
<p dir="auto">Ansible wrongly generates the rsync command. The problematic part is destination - root@/tmp/tmpZhhROE/build:/</p>
<p dir="auto">When dealing with chroot, there's no point to prepend a hoststring, local filesystem path would be enough.</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Feature Idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">feature</p>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible --version                                                                                                                              git:aws
ansible 2.3.1.0
  config file = 
  configured module search path = Default w/o overrides
  python version = 2.7.10 (default, Feb  7 2017, 00:08:15) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]"><pre class="notranslate"><code class="notranslate">ansible --version                                                                                                                              git:aws
ansible 2.3.1.0
  config file = 
  configured module search path = Default w/o overrides
  python version = 2.7.10 (default, Feb  7 2017, 00:08:15) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">AWS</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">How do we configure AWS new NLB? Do you have any documentation for this?</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">Refer: <a href="http://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html" rel="nofollow">http://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html</a></p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Ansible should provide a feature to create AWS NLB</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">Ansible should provide a feature to create AWS NLB</p>