Преглед на файлове

added attr proxy_command

Fabian Peter Hammerle преди 5 години
родител
ревизия
a639ff4194
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      tasks/main.yml

+ 3 - 1
tasks/main.yml

@@ -18,7 +18,9 @@
       {% if host_config.key_path is defined %}
           IdentityFile "{{host_config.key_path}}"
       {% endif %}
-      {% if host_config.ssh_proxy is defined %}
+      {% if host_config.proxy_command is defined %}
+          ProxyCommand {{host_config.proxy_command}}
+      {% elif host_config.ssh_proxy is defined %}
           ProxyCommand ssh -W localhost:{{host_config.ssh_proxy.port}}
       {%- if host_config.ssh_proxy.user is defined %}
        -o User={{host_config.ssh_proxy.user}}