Ansible hostvars

From Freephile Wiki
Revision as of 12:41, 14 September 2016 by Freephile (talk | contribs) (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...")

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.