@@ -48,15 +48,15 @@ StrictHostKeyChecking ask
4848#
4949{% if ssh_client_cbc_required -%}
5050 {% if ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14.04' -%}
51- Ciphers {{ssh_ciphers_66_weak}}
51+ Ciphers {{ ssh_ciphers_66_weak | join(',') }}
5252 {% else -%}
53- Ciphers {{ssh_ciphers_53_weak}}
53+ Ciphers {{ ssh_ciphers_53_weak | join(',') }}
5454 {% endif %}
5555{% else -%}
5656 {% if ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14.04' -%}
57- Ciphers {{ssh_ciphers_66_default}}
57+ Ciphers {{ ssh_ciphers_66_default | join(',') }}
5858 {% else -%}
59- Ciphers {{ssh_ciphers_53_default}}
59+ Ciphers {{ ssh_ciphers_53_default | join(',') }}
6060 {% endif %}
6161{% endif %}
6262
@@ -66,23 +66,23 @@ StrictHostKeyChecking ask
6666#
6767{% if ssh_client_weak_hmac -%}
6868 {% if ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14.04' -%}
69- MACs {{ssh_macs_66_weak}}
69+ MACs {{ ssh_macs_66_weak | join(',') }}
7070 {% elif ansible_os_family in ['Oracle Linux' , 'RedHat' ] and ansible_distribution_major_version <= '6' -%}
71- MACs {{ssh_macs_53_default}}
71+ MACs {{ ssh_macs_53_default | join(',') }}
7272 {% elif ansible_distribution == 'Debian' and ansible_distribution_major_version <= '6' -%}
73- MACs {{ssh_macs_53_default}}
73+ MACs {{ ssh_macs_53_default | join(',') }}
7474 {% else -%}
75- MACs {{ssh_macs_59_weak}}
75+ MACs {{ ssh_macs_59_weak | join(',') }}
7676 {% endif %}
7777{% else -%}
7878 {% if ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14.04' -%}
79- MACs {{ssh_macs_66_default}}
79+ MACs {{ ssh_macs_66_default | join(',') }}
8080 {% elif ansible_os_family in ['Oracle Linux' , 'RedHat' ] and ansible_distribution_major_version <= '6' -%}
81- MACs {{ssh_macs_53_default}}
81+ MACs {{ ssh_macs_53_default | join(',') }}
8282 {% elif ansible_distribution == 'Debian' and ansible_distribution_major_version <= '6' -%}
83- MACs {{ssh_macs_53_default}}
83+ MACs {{ ssh_macs_53_default | join(',') }}
8484 {% else -%}
85- MACs {{ssh_macs_59_default}}
85+ MACs {{ ssh_macs_59_default | join(',') }}
8686 {% endif %}
8787{% endif %}
8888
@@ -95,17 +95,17 @@ StrictHostKeyChecking ask
9595#
9696{% if ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14.04' -%}
9797 {% if ssh_client_weak_kex -%}
98- KexAlgorithms {{ssh_kex_66_weak}}
98+ KexAlgorithms {{ ssh_kex_66_weak | join(',') }}
9999 {% else -%}
100- KexAlgorithms {{ssh_kex_66_default}}
100+ KexAlgorithms {{ ssh_kex_66_default | join(',') }}
101101 {% endif %}
102102{% else -%}
103103 {% if ansible_os_family in ['Oracle Linux' , 'RedHat' ] or (ansible_distribution == 'Debian' and ansible_distribution_major_version <= '6' ) -%}
104104 #KexAlgorithms
105105 {% elif ssh_client_weak_kex -%}
106- KexAlgorithms {{ssh_kex_59_weak}}
106+ KexAlgorithms {{ ssh_kex_59_weak | join(',') }}
107107 {% else -%}
108- KexAlgorithms {{ssh_kex_59_default}}
108+ KexAlgorithms {{ ssh_kex_59_default | join(',') }}
109109 {% endif %}
110110{% endif %}
111111
0 commit comments