fix: use sysconfig template instead of file
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2022-09-04 14:35:42 +02:00
parent 80224221a4
commit fec8f170ec
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -34,12 +34,12 @@
loop: "{{ sshd_allow_groups }}"
- name: Disable SSH server CRYPTO_POLICY
copy:
src: etc/sysconfig/sshd
template:
src: etc/sysconfig/sshd.j2
dest: /etc/sysconfig/sshd
owner: "root"
group: "root"
mode: "0640"
owner: root
group: root
mode: 0640
when:
- sshd_disable_crypto_policy | bool
- ('crypto-policies' in ansible_facts.packages)