99# ===================
1010
1111# Address family should always be limited to the active network configuration.
12- AddressFamily {% if network_ipv 6_enable %} any{% else %} inet{% endif %}
12+ AddressFamily {% if network_ipv 6_enable - %} any{% else - %} inet{% endif %}
1313
1414# Restrict the following configuration to be limited to this Host.
15- {% for host in ssh_remote_hosts %}
15+ {% for host in ssh_remote_hosts - %}
1616Host {{host}}
1717{% endfor %}
1818
1919# The port at the destination should be defined
20- {% for port in ssh_ports %}
20+ {% for port in ssh_ports - %}
2121Port {{port}}
2222{% endfor %}
2323
@@ -48,15 +48,15 @@ StrictHostKeyChecking ask
4848# -- see: (http://net-ssh.github.com/net-ssh/classes/Net/SSH/Transport/CipherFactory.html)
4949#
5050{% if ssh_client_cbc_required %}
51- {% if ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14.04' %}
51+ {% if ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14.04' - %}
5252Ciphers {{ciphers_66_weak}}
53- {% else %}
53+ {% else - %}
5454Ciphers {{ciphers_53_weak}}
5555{% endif %}
5656{% else %}
57- {% if ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14.04' %}
57+ {% if ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14.04' - %}
5858Ciphers {{ciphers_66_default}}
59- {% else %}
59+ {% else - %}
6060Ciphers {{ciphers_53_default}}
6161{% endif %}
6262{% endif %}
@@ -66,21 +66,21 @@ Ciphers {{ciphers_53_default}}
6666# eg Ruby's Net::SSH at around 2.2.* doesn't support sha2 for hmac, so this will have to be set true in this case.
6767#
6868{% if ssh_server_weak_hmac %}
69- {% if ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14.04' %}
69+ {% if ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14.04' - %}
7070MACs {{macs_66_weak}}
71- {% elif ansible_os_family == 'RedHat' and ansible_distribution_major_version <= '6' %}
71+ {% elif ( ansible_os_family == 'RedHat' and ansible_distribution_major_version <= '6' ) or ansible_os_family == 'Oracle Linux' - %}
7272MACs {{macs_53_default}}
73- {% elif ansible_distribution == 'Debian' and ansible_distribution_major_version <= '6' %}
73+ {% elif ansible_distribution == 'Debian' and ansible_distribution_major_version <= '6' - %}
7474MACs {{macs_53_default}}
7575{% else %}
7676MACs {{macs_59_weak}}
7777{% endif %}
7878{% else %}
79- {% if ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14.04' %}
79+ {% if ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14.04' - %}
8080MACs {{macs_66_default}}
81- {% elif ansible_os_family == 'RedHat' and ansible_distribution_major_version <= '6' %}
81+ {% elif ( ansible_os_family == 'RedHat' and ansible_distribution_major_version <= '6' ) or ansible_os_family == 'Oracle Linux' - %}
8282MACs {{macs_53_default}}
83- {% elif ansible_distribution == 'Debian' and ansible_distribution_major_version <= '6' %}
83+ {% elif ansible_distribution == 'Debian' and ansible_distribution_major_version <= '6' - %}
8484MACs {{macs_53_default}}
8585{% else %}
8686MACs {{macs_59_default}}
@@ -101,7 +101,7 @@ MACs {{macs_59_default}}
101101 KexAlgorithms {{kex_66_default}}
102102 {% endif %}
103103{% else -%}
104- {% if ansible_os_family == 'RedHat' or (ansible_distribution == 'Debian' and ansible_distribution_major_version <= '6' ) -%}
104+ {% if ansible_os_family == 'RedHat' or (ansible_distribution == 'Debian' and ansible_distribution_major_version <= '6' ) or ansible_os_family == 'Oracle Linux' -%}
105105 #KexAlgorithms
106106 {% else -%}
107107 KexAlgorithms {{kex_59_default}}
0 commit comments