Commit a1a8997e by James Cammarata

Merge pull request #11663 from whereismyjetpack/fix_ansible_ssh_host

only set ansible_ssh_host if not already set
parents a56ff7ae 3e79bfa2
......@@ -121,7 +121,9 @@ class Host:
results = combine_vars(results, self.vars)
results['inventory_hostname'] = self.name
results['inventory_hostname_short'] = self.name.split('.')[0]
results['ansible_ssh_host'] = self.ipv4_address
if 'ansible_ssh_host' not in results:
results['ansible_ssh_host'] = self.ipv4_address
if 'ansible_ssh_port' not in results:
results['ansible_ssh_port'] = C.DEFAULT_REMOTE_PORT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment