Browse Source

key_path fixed

Fabian Peter Hammerle 7 years ago
parent
commit
6b3cf5c96c
1 changed files with 4 additions and 4 deletions
  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 %}