Browse Source

added option 'user'

Fabian Peter Hammerle 8 năm trước cách đây
mục cha
commit
caadec2586
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      tasks/main.yml

+ 3 - 0
tasks/main.yml

@@ -8,6 +8,9 @@
       {% if host_config.hostname is defined %}
           HostName {{host_config.hostname}}
       {% endif %}
+      {% if host_config.user is defined %}
+          User {{host_config.user}}
+      {% endif %}
       {% if host_config.ssh_proxy is defined %}
           ProxyCommand ssh -W localhost:{{host_config.ssh_proxy.port}} {{host_config.ssh_proxy.host}}
       {% endif %}