diff --git a/molecule/os_hardening/verify_tasks/ssh_auth_locked.yml b/molecule/os_hardening/verify_tasks/ssh_auth_locked.yml index 62639538..64e09af5 100644 --- a/molecule/os_hardening/verify_tasks/ssh_auth_locked.yml +++ b/molecule/os_hardening/verify_tasks/ssh_auth_locked.yml @@ -74,7 +74,7 @@ - "'WARNING: Your password has expired.' in output.stderr" - "'success' not in output.stdout" when: - - ansible_facts.distribution != "OpenSuse" + - ansible_facts.os_family != "OpenSuse" - name: Assert check unsuccessful login ansible.builtin.assert: @@ -83,7 +83,7 @@ - output.stderr | length == 0 - output.stdout | length == 0 when: - - ansible_facts.distribution == "OpenSuse" + - ansible_facts.os_family == "OpenSuse" - name: Check successful login with ssh key ansible.builtin.shell: