summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Lanahan <daidoji70@gmail.com>2015-05-01 10:23:56 -0700
committerCharles Lanahan <daidoji70@gmail.com>2015-05-01 10:23:56 -0700
commitc9815ef286cbb832041b9235251ee9cc01f894c6 (patch)
treef984a98ac96edc9844e5ed4c42f096f71f73129b
parent2f1b561bd36b32bbf470db4cda0072035bed3ba4 (diff)
downloadansible-c9815ef286cbb832041b9235251ee9cc01f894c6.tar.gz
Update intro_dynamic_inventory.rst
Examples of special characters being converted to underscores for clarity.
-rw-r--r--docsite/rst/intro_dynamic_inventory.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docsite/rst/intro_dynamic_inventory.rst b/docsite/rst/intro_dynamic_inventory.rst
index 6734efca19..00023a4cca 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: