Browse code

Updating changelog and docs for the new play_hosts variable

James Tanner authored on 2014/02/06 14:01:39
Showing 2 changed files
... ...
@@ -14,6 +14,7 @@ Major features/changes:
14 14
 * when using accelerate mode, the daemon will now be restarted when specifying a different remote_user between plays.
15 15
 * added no_log: option for tasks. When used, no logging information will be sent to syslog during the module execution.
16 16
 * acl module now handles 'default' and allows for either shorthand entry or specific fields per entry section
17
+* play_hosts is a new magic variable to provide a list of hosts in scope for the current play.
17 18
 
18 19
 
19 20
 New modules:
... ...
@@ -654,6 +654,8 @@ be useful for when you don't want to rely on the discovered hostname `ansible_ho
654 654
 reasons.  If you have a long FQDN, *inventory_hostname_short* also contains the part up to the first
655 655
 period, without the rest of the domain.
656 656
 
657
+*play_hosts* is available as a list of hostnames that are in scope for the current play. This may be useful for filling out templates with multiple hostnames or for injecting the list into the rules for a load balancer.
658
+
657 659
 Don't worry about any of this unless you think you need it.  You'll know when you do.
658 660
 
659 661
 Also available, *inventory_dir* is the pathname of the directory holding Ansible's inventory host file, *inventory_file* is the pathname and the filename pointing to the Ansible's inventory host file.