Browse Source

added ssh_proxy.bastion_port option

Fabian Peter Hammerle 4 years ago
parent
commit
b884517eb2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tasks/main.yml

+ 3 - 0
tasks/main.yml

@@ -27,6 +27,9 @@
       {%- endif %}
       {%- if host_config.ssh_proxy.key_path is defined %}
        -o IdentityFile='{{host_config.ssh_proxy.key_path}}'
+      {%- endif %}
+      {%- if host_config.ssh_proxy.bastion_port is defined %}
+       -p {{ host_config.ssh_proxy.bastion_port }}
       {%- endif %}
        {{host_config.ssh_proxy.host}}
       {% endif %}