From 9a04c7eabcba783f781f62a2e7947d86bb5b4d77 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 23 Feb 2013 14:37:50 -0500 Subject: [PATCH] Add more 1.1 features --- docsite/rst/patterns.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docsite/rst/patterns.rst b/docsite/rst/patterns.rst index 6347998a7b..c5fc8be0fe 100644 --- a/docsite/rst/patterns.rst +++ b/docsite/rst/patterns.rst @@ -57,6 +57,17 @@ In 1.0 and later, you can also do this for alphabetic ranges:: For numeric patterns, leading zeros can be included or removed, as desired. Ranges are inclusive. +In 1.1 and later, you can also select the connection type and user on a per host basis:: + + [targets] + + localhost ansible_connection=local + other1.example.com ansible_connection=ssh ansible_ssh_user=mpdehaan + other2.example.com ansible_connection=ssh ansible_ssh_user=mdehaan + +All of these variables can of course also be set outside of the inventory file, in 'host_vars' if you wish +to keep your inventory file simple. + Selecting Targets +++++++++++++++++