{% if 'localconfig_ssh_config_user' in hostvars[host] %}
User {{ hostvars[host].localconfig_ssh_config_user }}
{% endif %}
-{% if 'localconfig_ssh_config_port' in hostvars[host] %}
- Port {{ hostvars[host].localconfig_ssh_config_port }}
+{% if hostvars[host].ansible_port != 22000 %}
+ Port {{ hostvars[host].ansible_port }}
{% endif %}
{% endfor %}