mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-25 14:43:06 +00:00
remove state file on file module
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
10a6a2e0dd
commit
f9267a389b
3 changed files with 2 additions and 15 deletions
|
|
@ -3,7 +3,6 @@
|
|||
- name: "5.2.1 | Ensure permissions on /etc/ssh/sshd_config are configured"
|
||||
ansible.builtin.file:
|
||||
dest: /etc/ssh/sshd_config
|
||||
state: file
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0600
|
||||
|
|
@ -33,8 +32,7 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: 0600
|
||||
with_items:
|
||||
- "{{ rhel9cis_5_2_2_ssh_private_host_key.files }}"
|
||||
loop: "{{ rhel9cis_5_2_2_ssh_private_host_key.files }}"
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
when:
|
||||
|
|
@ -63,8 +61,7 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
with_items:
|
||||
- "{{ rhel9cis_5_2_3_ssh_public_host_key.files }}"
|
||||
loop: "{{ rhel9cis_5_2_3_ssh_public_host_key.files }}"
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
when:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue