This repository has been archived by the owner on Dec 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #305 from dev-sec/order_crypto
add blocks to crypto.yml checks
- Loading branch information
Showing
6 changed files
with
82 additions
and
76 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
- name: set ciphers according to openssh-version if openssh >= 5.3 | ||
set_fact: | ||
ssh_ciphers: '{{ ssh_ciphers_53_default }}' | ||
when: sshd_version is version('5.3', '>=') | ||
|
||
- name: set ciphers according to openssh-version if openssh >= 6.6 | ||
set_fact: | ||
ssh_ciphers: '{{ ssh_ciphers_66_default }}' | ||
when: sshd_version is version('6.6', '>=') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
- name: set hostkeys according to openssh-version if openssh >= 5.3 | ||
set_fact: | ||
ssh_host_key_files: ['/etc/ssh/ssh_host_rsa_key'] | ||
when: sshd_version is version('5.3', '>=') | ||
|
||
- name: set hostkeys according to openssh-version if openssh >= 6.0 | ||
set_fact: | ||
ssh_host_key_files: ['/etc/ssh/ssh_host_rsa_key', '/etc/ssh/ssh_host_ecdsa_key'] | ||
when: sshd_version is version('6.0', '>=') | ||
|
||
- name: set hostkeys according to openssh-version if openssh >= 6.3 | ||
set_fact: | ||
ssh_host_key_files: ['/etc/ssh/ssh_host_rsa_key', '/etc/ssh/ssh_host_ecdsa_key', '/etc/ssh/ssh_host_ed25519_key'] | ||
when: sshd_version is version('6.3', '>=') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
- name: set kex according to openssh-version if openssh >= 5.9 | ||
set_fact: | ||
ssh_kex: '{{ ssh_kex_59_default }}' | ||
when: sshd_version is version('5.9', '>=') | ||
|
||
- name: set kex according to openssh-version if openssh >= 6.6 | ||
set_fact: | ||
ssh_kex: '{{ ssh_kex_66_default }}' | ||
when: sshd_version is version('6.6', '>=') | ||
|
||
- name: set kex according to openssh-version if openssh >= 8.0 | ||
set_fact: | ||
ssh_kex: '{{ ssh_kex_80_default }}' | ||
when: sshd_version is version('8.0', '>=') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
- name: set macs according to openssh-version if openssh >= 5.3 | ||
set_fact: | ||
ssh_macs: '{{ ssh_macs_53_default }}' | ||
when: sshd_version is version('5.3', '>=') | ||
|
||
- name: set macs for Enterprise Linux >= 6.5 (openssh 5.3 with backports) | ||
set_fact: | ||
ssh_macs: '{{ ssh_macs_53_el_6_5_default }}' | ||
when: | ||
- ansible_facts.distribution in ['CentOS', 'OracleLinux', 'RedHat'] | ||
- ansible_facts.distribution_version is version('6.5', '>=') | ||
|
||
- name: set macs according to openssh-version if openssh >= 5.9 | ||
set_fact: | ||
ssh_macs: '{{ ssh_macs_59_default }}' | ||
when: sshd_version is version('5.9', '>=') | ||
|
||
- name: set macs according to openssh-version if openssh >= 6.6 | ||
set_fact: | ||
ssh_macs: '{{ ssh_macs_66_default }}' | ||
when: sshd_version is version('6.6', '>=') | ||
|
||
- name: set macs according to openssh-version if openssh >= 7.6 | ||
set_fact: | ||
ssh_macs: '{{ ssh_macs_76_default }}' | ||
when: sshd_version is version('7.6', '>=') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters