File tree 2 files changed +3
-3
lines changed
molecule/os_hardening/verify_tasks
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 74
74
- " 'WARNING: Your password has expired.' in output.stderr"
75
75
- " 'success' not in output.stdout"
76
76
when :
77
- - ansible_facts.os_family != "OpenSuse "
77
+ - ansible_facts.os_family != "Suse "
78
78
79
79
- name : Assert check unsuccessful login
80
80
ansible.builtin.assert :
83
83
- output.stderr | length == 0
84
84
- output.stdout | length == 0
85
85
when :
86
- - ansible_facts.os_family == "OpenSuse "
86
+ - ansible_facts.os_family == "Suse "
87
87
88
88
- name : Check successful login with ssh key
89
89
ansible.builtin.shell :
Original file line number Diff line number Diff line change 43
43
regexp : " ^(account.*pam_unix.so(?!.*no_pass_expiry).*)$"
44
44
line : ' \1 no_pass_expiry'
45
45
when :
46
- - ansible_facts.os_family == 'OpenSuse '
46
+ - ansible_facts.os_family == 'Suse '
47
47
48
48
- name : NSA 2.3.3.5 Upgrade Password Hashing Algorithm to SHA-512
49
49
ansible.builtin.template :
You can’t perform that action at this time.
0 commit comments