Browse Source

added option 'user'

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