Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit 4a97d4d

Browse files
authored
Merge pull request #270 from foonix/rhel6-sha2-hmacs
Use sha2 HMACs on RHEL 6 / CentOS 6.
2 parents 3d351ef + ffc7fae commit 4a97d4d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

defaults/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ ssh_macs_53_default:
171171
- hmac-ripemd160
172172
- hmac-sha1
173173

174+
ssh_macs_53_el_6_5_default:
175+
- hmac-sha2-512
176+
- hmac-sha2-256
177+
174178
ssh_macs_59_default:
175179
- hmac-sha2-512
176180
- hmac-sha2-256

tasks/crypto.yml

+8
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
ssh_macs: '{{ ssh_macs_59_default }}'
3333
when: sshd_version is version('5.9', '>=') and not ssh_macs
3434

35+
- name: set macs for Enterprise Linux >= 6.5 (openssh 5.3 with backports)
36+
set_fact:
37+
ssh_macs: '{{ ssh_macs_53_el_6_5_default }}'
38+
when:
39+
- ansible_distribution in ['CentOS', 'OracleLinux', 'RedHat']
40+
- ansible_distribution_version is version('6.5', '>=')
41+
- not ssh_macs
42+
3543
- name: set macs according to openssh-version
3644
set_fact:
3745
ssh_macs: '{{ ssh_macs_53_default }}'

0 commit comments

Comments
 (0)