Update ansible_ssh_host->ansible_host in ec2.py dynamic inventory (#17113)
This commit is contained in:
parent
84fb9f032d
commit
290d84f904
1 changed files with 2 additions and 2 deletions
|
@ -999,7 +999,7 @@ class Ec2Inventory(object):
|
|||
self.push(self.inventory, 'ec2', hostname)
|
||||
|
||||
self.inventory["_meta"]["hostvars"][hostname] = self.get_host_info_dict_from_instance(instance)
|
||||
self.inventory["_meta"]["hostvars"][hostname]['ansible_ssh_host'] = dest
|
||||
self.inventory["_meta"]["hostvars"][hostname]['ansible_host'] = dest
|
||||
|
||||
def add_rds_instance(self, instance, region):
|
||||
''' Adds an RDS instance to the inventory and index, as long as it is
|
||||
|
@ -1096,7 +1096,7 @@ class Ec2Inventory(object):
|
|||
self.push(self.inventory, 'rds', hostname)
|
||||
|
||||
self.inventory["_meta"]["hostvars"][hostname] = self.get_host_info_dict_from_instance(instance)
|
||||
self.inventory["_meta"]["hostvars"][hostname]['ansible_ssh_host'] = dest
|
||||
self.inventory["_meta"]["hostvars"][hostname]['ansible_host'] = dest
|
||||
|
||||
def add_elasticache_cluster(self, cluster, region):
|
||||
''' Adds an ElastiCache cluster to the inventory and index, as long as
|
||||
|
|
Loading…
Reference in a new issue