From a535ed3cbb52e098e646f6381d109c7659d2af1e Mon Sep 17 00:00:00 2001 From: Sven Ketelsen Date: Tue, 31 Aug 2021 19:45:12 +0200 Subject: [PATCH] feat: added parameter to local ssh config update - username --- update-ssh-config-file.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/update-ssh-config-file.yml b/update-ssh-config-file.yml index 34b880d..29a8276 100644 --- a/update-ssh-config-file.yml +++ b/update-ssh-config-file.yml @@ -3,6 +3,7 @@ # Parameters: # playbook inventory # stage := the type of the stage (e.g. dev, int, qa, prod) +# username := the default username to use for the ssh connection ############################################################# # Updating ssh config for servers with given stage @@ -44,4 +45,5 @@ {% for host in server_group_infos_all %} Host {{ host.name }} HostName {{ host.ip }} + User {{ username }} {% endfor %} \ No newline at end of file