Skip to content

Commit

Permalink
Make changes portable
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 1b9691c commit a5f7b4e
Showing 1 changed file with 2 additions and 2 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.distribution != "OpenSuse"
- ansible_facts.os_family != "OpenSuse"

- 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.distribution == "OpenSuse"
- ansible_facts.os_family == "OpenSuse"

- name: Check successful login with ssh key
ansible.builtin.shell:
Expand Down

0 comments on commit a5f7b4e

Please sign in to comment.