title: ansible lookup pipe insert host name?
body: <p>In ansible I use following to insert date into file that is created by ansible:</p>
  
  <pre><code>log_path: c:\ansible_wu{{ lookup('pipe', 'date +%Y%m%d') }}.txt
  </code></pre>
  
  <p>Is there a way to insert host name of in front of the date as well?
  so file would look something like this:<code>servername_wu20180518.txt</code></p>