fix: fix crypto policy integration
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2022-09-18 22:28:55 +02:00
parent 41ce45ae27
commit ed5821e9d5
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -2,7 +2,6 @@
- name: Gather package facts
package_facts:
check_mode: False
when: not sshd_crypto_policy_enabled | bool
- block:
- name: Hardening sshd config
@ -33,7 +32,7 @@
state: present
loop: "{{ sshd_allow_groups }}"
- name: Disable SSH server CRYPTO_POLICY
- name: Configure SSH crypto policy usage
template:
src: etc/sysconfig/sshd.j2
dest: /etc/sysconfig/sshd