Merge pull request #11663 from whereismyjetpack/fix_ansible_ssh_host

only set ansible_ssh_host if not already set
This commit is contained in:
James Cammarata 2015-07-26 23:46:21 -04:00
commit a1a8997e89

View file

@ -121,6 +121,8 @@ class Host:
results = combine_vars(results, self.vars)
results['inventory_hostname'] = self.name
results['inventory_hostname_short'] = self.name.split('.')[0]
if 'ansible_ssh_host' not in results:
results['ansible_ssh_host'] = self.ipv4_address
if 'ansible_ssh_port' not in results: