Skip to content

Commit

Permalink
updates from #13
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Bolwell <[email protected]>
  • Loading branch information
uk-bolly committed Jul 9, 2024
1 parent 31ce9c9 commit f2b1d4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tasks/Cat2/RHEL-09-25xxxx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@
section: main
state: present
value: none
no_extra_spaces: true
register: rhel09stig_dns_nm_set

- name: "MEDIUM | RHEL-09-252035 | PATCH | RHEL 9 systems using Domain Name Servers (DNS) resolution must have at least two name servers configured."
Expand Down Expand Up @@ -1052,7 +1053,7 @@
notify: Change_requires_reboot
ansible.builtin.lineinfile:
line: "Ciphers {{ rhel9stig_sshd_config.ciphers | join(',') }}"
path: /etc/crypto-policies/back-ends/opensshserver.config
path: /etc/crypto-policies/back-ends/openssh.config
regexp: ^Ciphers

- name: "MEDIUM | RHEL-09-255070 | PATCH | RHEL 9 SSH client must be configured to use only Message Authentication Codes (MACs) employing FIPS 140-3 validated cryptographic hash algorithms."
Expand Down Expand Up @@ -1406,7 +1407,7 @@
ansible.builtin.lineinfile:
create: true
line: "IgnoreUserKnownHosts {{ rhel9stig_sshd_config.ignoreknownhosts }}"
path: "{{ rhel9stig_sshd_config_file }}"
path: /etc/ssh/sshd_config.d/50-redhat.conf
regexp: ^(?i)(#|)IgnoreUserKnownHosts\s*(yes|no)
validate: sshd -t -f %s

Expand Down

0 comments on commit f2b1d4b

Please sign in to comment.