Skip to content

Commit 4b05df7

Browse files
committed
fix errors
Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
1 parent fba07a4 commit 4b05df7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

molecule/os_hardening/verify_tasks/ssh_auth_locked.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
2-
- name: Install sshpass
2+
- name: Install tools
33
package:
44
name:
55
- sshpass
6+
- python3-passlib
67
state: present
78

89
- name: Set password for test

roles/os_hardening/tasks/pam_debian.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@
120120
- not os_auth_pam_passwdqc_enable
121121

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

0 commit comments

Comments
 (0)