ansible.rst
changeset 2449 508963deb620
parent 2448 1a02d5429a5d
child 2460 d46c13ff4cd9
equal deleted inserted replaced
2448:1a02d5429a5d 2449:508963deb620
   178   task. Then next task is executed. ``serial`` sets how many hosts at a time to run at a time to the
   178   task. Then next task is executed. ``serial`` sets how many hosts at a time to run at a time to the
   179   end of subplay.
   179   end of subplay.
   180 * With ``free`` strategy tasks are executed without waiting for completion of the same task on every
   180 * With ``free`` strategy tasks are executed without waiting for completion of the same task on every
   181   host.
   181   host.
   182 
   182 
       
   183 Special variables
       
   184 =================
       
   185 
       
   186 You can dump any variable by ``debug`` task in a playbook or using mudule::
       
   187 
       
   188   ansible $host -m debug -a var=groups
       
   189 
       
   190 * ``vars`` holds everything!
       
   191 * ``hosts`` holds all inventory definitions
       
   192 * ``groups`` holds info about grouping of hosts
       
   193 * ``ansible_facts`` all collected facts about current host
       
   194 
   183 Blocks
   195 Blocks
   184 ======
   196 ======
   185 
   197 
   186 To avoid repetitive checks or to handle failures use ``block``::
   198 To avoid repetitive checks or to handle failures use ``block``::
   187 
   199