Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Schurz <[email protected]>
  • Loading branch information
schurzi committed Dec 22, 2024
1 parent fba07a4 commit 4b05df7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion molecule/os_hardening/verify_tasks/ssh_auth_locked.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
- name: Install sshpass
- name: Install tools
package:
name:
- sshpass
- python3-passlib
state: present

- name: Set password for test
Expand Down
4 changes: 2 additions & 2 deletions roles/os_hardening/tasks/pam_debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@
- not os_auth_pam_passwdqc_enable

- name: Allow Login with SSH Keys, when user password is expired
lineinfile:
ansible.builtin.lineinfile:
path: /etc/pam.d/common-account
backrefs: yes
backrefs: true
regexp: "^(account.*pam_unix.so(?!.*no_pass_expiry).*)$"
line: '\1 no_pass_expiry'

0 comments on commit 4b05df7

Please sign in to comment.