From 290d84f90437044e4bb35c0a603519296d525f42 Mon Sep 17 00:00:00 2001 From: Josh Smift Date: Mon, 17 Jul 2017 15:30:11 -0400 Subject: [PATCH] Update ansible_ssh_host->ansible_host in ec2.py dynamic inventory (#17113) --- contrib/inventory/ec2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/inventory/ec2.py b/contrib/inventory/ec2.py index ca81ef0d76d..d001de4f54e 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