Skip to content

Commit

Permalink
Use correct os_family for Suse ...
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
  • Loading branch information
schurzi committed Dec 22, 2024
1 parent a5f7b4e commit 48deb99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions molecule/os_hardening/verify_tasks/ssh_auth_locked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
- "'WARNING: Your password has expired.' in output.stderr"
- "'success' not in output.stdout"
when:
- ansible_facts.os_family != "OpenSuse"
- ansible_facts.os_family != "Suse"

- name: Assert check unsuccessful login
ansible.builtin.assert:
Expand All @@ -83,7 +83,7 @@
- output.stderr | length == 0
- output.stdout | length == 0
when:
- ansible_facts.os_family == "OpenSuse"
- ansible_facts.os_family == "Suse"

- name: Check successful login with ssh key
ansible.builtin.shell:
Expand Down
2 changes: 1 addition & 1 deletion roles/os_hardening/tasks/pam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
regexp: "^(account.*pam_unix.so(?!.*no_pass_expiry).*)$"
line: '\1 no_pass_expiry'
when:
- ansible_facts.os_family == 'OpenSuse'
- ansible_facts.os_family == 'Suse'

- name: NSA 2.3.3.5 Upgrade Password Hashing Algorithm to SHA-512
ansible.builtin.template:
Expand Down

0 comments on commit 48deb99

Please sign in to comment.