Ansible hostvars: Difference between revisions

From Freephile Wiki
Created page with "<code>ansible -m debug -a "var=hostvars['wiki.example.net']" localhost </code> will give you all the defined 'variables' associated with a given host Many of these may be sen..."
 
m tagged
Line 2: Line 2:


Many of these may be sensitive, so they aren't shown here, but give it a try.
Many of these may be sensitive, so they aren't shown here, but give it a try.
[[Category:Ansible]]

Revision as of 19:41, 22 August 2025

ansible -m debug -a "var=hostvars['wiki.example.net']" localhost will give you all the defined 'variables' associated with a given host

Many of these may be sensitive, so they aren't shown here, but give it a try.