summaryrefslogtreecommitdiff
path: root/docsite
diff options
context:
space:
mode:
authorLorin Hochstein <lorin.hochstein@sendgrid.com>2014-04-29 11:46:14 -0400
committerLorin Hochstein <lorin.hochstein@sendgrid.com>2014-04-29 11:46:14 -0400
commitd50dc45cd4ddc20f0be0cd9b0225778a40116c14 (patch)
treed94b7632d7148b7346311087737a691040490b28 /docsite
parent9da06274a8729924f32b3d83897268caad7de2a6 (diff)
downloadansible-d50dc45cd4ddc20f0be0cd9b0225778a40116c14.tar.gz
Document static groups of dynamic groups
Document how to create static groups with dynamic child groups
Diffstat (limited to 'docsite')
-rw-r--r--docsite/rst/intro_dynamic_inventory.rst20
1 files changed, 20 insertions, 0 deletions
diff --git a/docsite/rst/intro_dynamic_inventory.rst b/docsite/rst/intro_dynamic_inventory.rst
index 6ca7062935..a9e5d21a5d 100644
--- a/docsite/rst/intro_dynamic_inventory.rst
+++ b/docsite/rst/intro_dynamic_inventory.rst
@@ -223,6 +223,26 @@ If the location given to -i in Ansible is a directory (or as so configured in an
at the same time. When doing so, it is possible to mix both dynamic and statically managed inventory sources in the same ansible run. Instant
hybrid cloud!
+.. _static_groups_of_dynamic:
+
+Static Groups of Dynamic Groups
+```````````````````````````````
+
+When defining groups of groups in the static inventory file, the child groups
+must also be defined in the static inventory file, or ansible will return an
+error. If you want to define a static group of dynamic child groups, define
+the dynamic groups as empty in the static inventory file. For example::
+
+ [tag_Name_staging_foo]
+
+ [tag_Name_staging_bar]
+
+ [staging:children]
+ tag_Name_staging_foo
+ tag_Name_staging_bar
+
+
+
.. seealso::
:doc:`intro_inventory`