updated 5.1.1 logic for ec2 image

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2025-02-21 09:45:33 +00:00
parent 39efaecdd2
commit 345928b74f
No known key found for this signature in database
GPG Key ID: 997FF7FE93AEB5B9
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
register: discovered_sshd_confs register: discovered_sshd_confs
- name: "5.1.1 | PATCH | Ensure permissions on /etc/ssh/sshd_config are configured" - name: "5.1.1 | PATCH | Ensure permissions on /etc/ssh/sshd_config are configured"
when: (item.path != "'/etc/ssh/sshd_config.d/60-cloudimg-settings.conf'" and system_is_ec2 ) when: (item.path != '/etc/ssh/sshd_config.d/60-cloudimg-settings.conf' and system_is_ec2 )
ansible.builtin.file: ansible.builtin.file:
path: "{{ item.path }}" path: "{{ item.path }}"
recurse: false recurse: false