diff --git a/tasks/prelim.yml b/tasks/prelim.yml index a556392..bfbac94 100644 --- a/tasks/prelim.yml +++ b/tasks/prelim.yml @@ -167,7 +167,7 @@ path: /etc/ssh/sshd_config.d register: sshd_d_conf_files when: - - "'openssh-server' in ansible_facts.packages" + - "'openssh-server' in ansible_facts.packages" tags: - always @@ -176,7 +176,7 @@ path: "{{ amzn2023cis_sshd_config_file }}" register: main_sshd_cfg when: - - "'openssh-server' in ansible_facts.packages" + - "'openssh-server' in ansible_facts.packages" tags: - always diff --git a/tasks/section_4/cis_4.2.x.yml b/tasks/section_4/cis_4.2.x.yml index 20f8a98..6134cb4 100644 --- a/tasks/section_4/cis_4.2.x.yml +++ b/tasks/section_4/cis_4.2.x.yml @@ -213,7 +213,7 @@ validate: sshd -t -f %s with_items: - "{{ sshd_d_conf_files.files }}" - - "{{ main_sshd_cfg.stat }}" + - "{{ main_sshd_cfg.stat }}" when: - amzn2023cis_rule_4_2_9 tags: @@ -461,4 +461,4 @@ - nist_sp800-53r5_CM-2 - nist_sp800-53r5_CM-6 - nist_sp800-53r5_CM-7 - - nist_sp800-53r5_IA-5 \ No newline at end of file + - nist_sp800-53r5_IA-5