Servers

Ansible print hostvariables

Sometimes we need to check hostvars in our ansible hosts.

a quick way to get this done should be

</p>
<p>ansible all -i &lt;host_inventory_file&gt; --user=root -m setup</p>
<p>

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.