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 }}"
|
loop: "{{ sshd_allow_groups }}"
|
||||||
|
|
||||||
- name: Disable SSH server CRYPTO_POLICY
|
- name: Disable SSH server CRYPTO_POLICY
|
||||||
copy:
|
template:
|
||||||
src: etc/sysconfig/sshd
|
src: etc/sysconfig/sshd.j2
|
||||||
dest: /etc/sysconfig/sshd
|
dest: /etc/sysconfig/sshd
|
||||||
owner: "root"
|
owner: root
|
||||||
group: "root"
|
group: root
|
||||||
mode: "0640"
|
mode: 0640
|
||||||
when:
|
when:
|
||||||
- sshd_disable_crypto_policy | bool
|
- sshd_disable_crypto_policy | bool
|
||||||
- ('crypto-policies' in ansible_facts.packages)
|
- ('crypto-policies' in ansible_facts.packages)
|
||||||
|
Loading…
Reference in New Issue
Block a user