summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJosh Smift <jbs@care.com>2017-07-17 15:30:11 -0400
committerRyan Brown <sb@ryansb.com>2017-07-17 15:30:11 -0400
commit290d84f90437044e4bb35c0a603519296d525f42 (patch)
tree0a11c69c27a14e7b2b9340ecc71722629bbebea9 /contrib
parent84fb9f032d06d0b52b18ee519dc2050adee1d053 (diff)
downloadansible-290d84f90437044e4bb35c0a603519296d525f42.tar.gz
Update ansible_ssh_host->ansible_host in ec2.py dynamic inventory (#17113)
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/inventory/ec2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/inventory/ec2.py b/contrib/inventory/ec2.py
index ca81ef0d76..d001de4f54 100755
--- a/contrib/inventory/ec2.py
+++ b/contrib/inventory/ec2.py
@@ -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