Use Ansible facts in an Ansible ad-hoc command
<p>Is it possible to use what would normally be included in <code>ansible_facts</code> in an Ansible adhoc command?</p>

<p>For example, I have a file at <code>/tmp/myFile</code> on all of my servers and I'd like to do:</p>

<pre><code>ansible all -i [inventory file] -m fetch -a "src=/tmp/myFile dest=myFile-[insert ansible_hostname here]"
</code></pre>

<p>Without having to make a whole playbook for it.</p>