Fabian Peter Hammerle 7 роки тому
батько
коміт
6b3cf5c96c
1 змінених файлів з 4 додано та 4 видалено
  1. 4 4
      tasks/main.yml

+ 4 - 4
tasks/main.yml

@@ -13,7 +13,7 @@
           User {{host_config.user}}
       {% endif %}
       {% if host_config.key_path is defined %}
-          IdentityFile '{{host_config.key_path}}'
+          IdentityFile "{{host_config.key_path}}"
       {% endif %}
       {% if host_config.ssh_proxy is defined %}
           ProxyCommand ssh -W localhost:{{host_config.ssh_proxy.port}}
@@ -21,7 +21,7 @@
        -o User={{host_config.ssh_proxy.user}}
       {%- endif %}
       {%- if host_config.ssh_proxy.key_path is defined %}
-       -i '{{host_config.ssh_proxy.key_path}}'
+       -o IdentityFile='{{host_config.ssh_proxy.key_path}}'
       {%- endif %}
        {{host_config.ssh_proxy.host}}
       {% endif %}
@@ -45,7 +45,7 @@
           User {{host_config.user}}
       {% endif %}
       {% if host_config.key_path is defined %}
-          IdentityFile '{{host_config.key_path}}'
+          IdentityFile "{{host_config.key_path}}"
       {% endif %}
       {% if host_config.ssh_proxy is defined %}
           ProxyCommand ssh -W localhost:{{host_config.ssh_proxy.port}}
@@ -53,7 +53,7 @@
        -o User={{host_config.ssh_proxy.user}}
       {%- endif %}
       {%- if host_config.ssh_proxy.key_path is defined %}
-       -i '{{host_config.ssh_proxy.key_path}}'
+       -o IdentityFile='{{host_config.ssh_proxy.key_path}}'
       {%- endif %}
        {{host_config.ssh_proxy.host}}
       {% endif %}