Skip to content

Commit

Permalink
Update hostname_variable tag override example. (#618) (#1066)
Browse files Browse the repository at this point in the history
[PR #618/cb2b186f backport][stable-2] Update hostname_variable tag override example.

This is a backport of PR #618 as merged into stable-3 (cb2b186).
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>
  • Loading branch information
patchback[bot] authored Apr 14, 2022
1 parent a334f70 commit 12c302c
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 12c302c

Please sign in to comment.