fix: use sysconfig template instead of file
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
80224221a4
commit
fec8f170ec
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user