4
0
Fork 0

remove state file on file module

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2023-01-26 08:29:03 +00:00
parent 10a6a2e0dd
commit f9267a389b
No known key found for this signature in database
GPG key ID: 1DE02A772D0908F9
3 changed files with 2 additions and 15 deletions

View file

@ -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: