From 3c3aff09c9d9764f98e2824251277d45f9216963 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Sat, 31 Oct 2015 16:35:13 -0400 Subject: [PATCH] fixed documentation for host patterns separators --- docsite/rst/intro_patterns.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docsite/rst/intro_patterns.rst b/docsite/rst/intro_patterns.rst index 970ec58dc0..669ddd802d 100644 --- a/docsite/rst/intro_patterns.rst +++ b/docsite/rst/intro_patterns.rst @@ -39,7 +39,7 @@ This means the host may be in either one group or the other:: You can exclude groups as well, for instance, all machines must be in the group webservers but not in the group phoenix:: - webservers:!phoenix + webservers,!phoenix You can also specify the intersection of two groups. This would mean the hosts must be in the group webservers and the host must also be in the group staging:: @@ -48,7 +48,7 @@ the host must also be in the group staging:: You can do combinations:: - webservers:dbservers:&staging:!phoenix + webservers,dbservers,&staging,!phoenix The above configuration means "all machines in the groups 'webservers' and 'dbservers' are to be managed if they are in the group 'staging' also, but the machines are not to be managed if they are in the group 'phoenix' ... whew! @@ -97,6 +97,9 @@ And if you want to read the list of hosts from a file, prefix the file name with Easy enough. See :doc:`intro_adhoc` and then :doc:`playbooks` for how to apply this knowledge. +.. note:: With the exception of version 1.9, you can use ',' instead of ':' as a host list separator. The ',' is prefered specially when dealing with ranges and ipv6. +.. note:: As of 2.0 the ';' is deprecated as a host list separator. + .. seealso:: :doc:`intro_adhoc`