# HG changeset patch # User Oleksandr Gavenko # Date 1604528551 -7200 # Node ID 508963deb620f5bfb41c943348622e344150c781 # Parent 1a02d5429a5d28005099a2ca70c258fb88da0f74 Special variables. diff -r 1a02d5429a5d -r 508963deb620 ansible.rst --- a/ansible.rst Wed Nov 04 21:52:41 2020 +0200 +++ b/ansible.rst Thu Nov 05 00:22:31 2020 +0200 @@ -180,6 +180,18 @@ * With ``free`` strategy tasks are executed without waiting for completion of the same task on every host. +Special variables +================= + +You can dump any variable by ``debug`` task in a playbook or using mudule:: + + ansible $host -m debug -a var=groups + +* ``vars`` holds everything! +* ``hosts`` holds all inventory definitions +* ``groups`` holds info about grouping of hosts +* ``ansible_facts`` all collected facts about current host + Blocks ======