Skip to content

Commit a63bdc6

Browse files
committed
[ssh_jumper] Filter to have unique values in Host
Currently, multiple patterns are joined to form Host alias for ssh_host.conf, and some values in patterns are identical, leaving duplicate entries in Host. Signed-off-by: Amartya Sinha <[email protected]>
1 parent ec1e88b commit a63bdc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/ssh_jumper/templates/ssh_host.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Host {{ (_config.patterns | default(cifmw_ssh_jumper_defaults.patterns) + [_config.hostname]) | join(' ') }}
1+
Host {{ (_config.patterns | default(cifmw_ssh_jumper_defaults.patterns) + [_config.hostname]) | unique | join(' ') }}
22
Hostname {{ _config.hostname }}
33
{% if _config.proxy_host is defined and _config.proxy_host is not none %}
44
ProxyJump {{ _config.proxy_user | default(cifmw_ssh_jumper_defaults.user) }}@{{ _config.proxy_host }}

0 commit comments

Comments
 (0)