From c9815ef286cbb832041b9235251ee9cc01f894c6 Mon Sep 17 00:00:00 2001 From: Charles Lanahan Date: Fri, 1 May 2015 10:23:56 -0700 Subject: [PATCH] Update intro_dynamic_inventory.rst Examples of special characters being converted to underscores for clarity. --- docsite/rst/intro_dynamic_inventory.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docsite/rst/intro_dynamic_inventory.rst b/docsite/rst/intro_dynamic_inventory.rst index 6734efca190..00023a4ccae 100644 --- a/docsite/rst/intro_dynamic_inventory.rst +++ b/docsite/rst/intro_dynamic_inventory.rst @@ -140,9 +140,9 @@ Security Group Tags Each instance can have a variety of key/value pairs associated with it called Tags. The most common tag key is 'Name', though anything is possible. Each key/value pair is its own group of instances, again with special characters converted to underscores, in the format ``tag_KEY_VALUE`` e.g. - ``tag_Name_Web`` - ``tag_Name_redis-master-001`` - ``tag_aws_cloudformation_logical-id_WebServerGroup`` + ``tag_Name_Web`` can be used as is + ``tag_Name_redis-master-001`` becomes ``tag_Name_redis_master_001`` + ``tag_aws_cloudformation_logical-id_WebServerGroup`` becomes ``tag_aws_cloudformation_logical_id_WebServerGroup`` When the Ansible is interacting with a specific server, the EC2 inventory script is called again with the ``--host HOST`` option. This looks up the HOST in the index cache to get the instance ID, and then makes an API call to AWS to get information about that specific instance. It then makes information about that instance available as variables to your playbooks. Each variable is prefixed by ``ec2_``. Here are some of the variables available: