소스 검색

added key_path option

Fabian Peter Hammerle 8 년 전
부모
커밋
936c4a13a0
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      tasks/main.yml

+ 6 - 0
tasks/main.yml

@@ -12,6 +12,9 @@
       {% if host_config.user is defined %}
           User {{host_config.user}}
       {% endif %}
+      {% if host_config.key_path is defined %}
+          IdentityFile '{{host_config.key_path}}'
+      {% endif %}
       {% if host_config.ssh_proxy is defined %}
           ProxyCommand ssh -W localhost:{{host_config.ssh_proxy.port}}
       {%- if host_config.ssh_proxy.user is defined %}
@@ -41,6 +44,9 @@
       {% if host_config.user is defined %}
           User {{host_config.user}}
       {% endif %}
+      {% if host_config.key_path is defined %}
+          IdentityFile '{{host_config.key_path}}'
+      {% endif %}
       {% if host_config.ssh_proxy is defined %}
           ProxyCommand ssh -W localhost:{{host_config.ssh_proxy.port}}
       {%- if host_config.ssh_proxy.user is defined %}