diff --git a/tasks/ssh_default.yml b/tasks/ssh_default.yml index 3bd48e5..82260c0 100644 --- a/tasks/ssh_default.yml +++ b/tasks/ssh_default.yml @@ -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