Skip to content

Commit e13bb0f

Browse files
committed
Use correct os_family for Suse ...
Signed-off-by: Martin Schurz <[email protected]>
1 parent e8cf61b commit e13bb0f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

molecule/os_hardening/verify_tasks/ssh_auth_locked.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
- "'WARNING: Your password has expired.' in output.stderr"
7575
- "'success' not in output.stdout"
7676
when:
77-
- ansible_facts.os_family != "OpenSuse"
77+
- ansible_facts.os_family != "Suse"
7878

7979
- name: Assert check unsuccessful login
8080
ansible.builtin.assert:
@@ -83,7 +83,7 @@
8383
- output.stderr | length == 0
8484
- output.stdout | length == 0
8585
when:
86-
- ansible_facts.os_family == "OpenSuse"
86+
- ansible_facts.os_family == "Suse"
8787

8888
- name: Check successful login with ssh key
8989
ansible.builtin.shell:

roles/os_hardening/tasks/pam.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
regexp: "^(account.*pam_unix.so(?!.*no_pass_expiry).*)$"
4444
line: '\1 no_pass_expiry'
4545
when:
46-
- ansible_facts.os_family == 'OpenSuse'
46+
- ansible_facts.os_family == 'Suse'
4747

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

0 commit comments

Comments
 (0)