Skip to content

Commit

Permalink
Update hostname_variable tag override example. (#618)
Browse files Browse the repository at this point in the history
Update hostname_variable tag override example.

SUMMARY
Between Ansible Tower 3.6 and 3.7, the tag formatting changed for overriding the hostname variable. Users doing the 3.7 upgrade may be surprised when their inventories update with the ip##-##-##-##.example.com hostname format when they were previously able to import from AWS using the Name tag as the inventory identifier.
ISSUE TYPE

Docs Pull Request

COMPONENT NAME
ec2\

Reviewed-by: Mark Chappell <None>
(cherry picked from commit cb2b186)
  • Loading branch information
deekayen authored and patchback[bot] committed Apr 14, 2022
1 parent a334f70 commit 6058e3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/inventory/ec2.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ destination_variable = public_dns_name

# This allows you to override the inventory_name with an ec2 variable, instead
# of using the destination_variable above. Addressing (aka ansible_ssh_host)
# will still use destination_variable. Tags should be written as 'tag_TAGNAME'.
#hostname_variable = tag_Name
# will still use destination_variable. Tags should be written as 'tag:TAGNAME'.
#hostname_variable = tag:Name

# For server inside a VPC, using DNS names may not make sense. When an instance
# has 'subnet_id' set, this variable is used. If the subnet is public, setting
Expand Down

0 comments on commit 6058e3a

Please sign in to comment.