We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fba07a4 commit 4b05df7Copy full SHA for 4b05df7
molecule/os_hardening/verify_tasks/ssh_auth_locked.yml
@@ -1,8 +1,9 @@
1
---
2
-- name: Install sshpass
+- name: Install tools
3
package:
4
name:
5
- sshpass
6
+ - python3-passlib
7
state: present
8
9
- name: Set password for test
roles/os_hardening/tasks/pam_debian.yml
@@ -120,8 +120,8 @@
120
- not os_auth_pam_passwdqc_enable
121
122
- name: Allow Login with SSH Keys, when user password is expired
123
- lineinfile:
+ ansible.builtin.lineinfile:
124
path: /etc/pam.d/common-account
125
- backrefs: yes
+ backrefs: true
126
regexp: "^(account.*pam_unix.so(?!.*no_pass_expiry).*)$"
127
line: '\1 no_pass_expiry'
0 commit comments