Professional Documents
Culture Documents
Scrip
Scrip
- name: Add pam_pwhistory line after the last pam_unix.so [JS3]in password-auth
if it does not exist
blockinfile:
path: /etc/pam.d/password-auth
marker: "# {mark} ANSIBLE MANAGED BLOCK AFTER PAM_UNIX"
block: |
password requisite
pam_pwhistory.so use_authtok remember=5 retry=3[JS4]
backup: yes
when: grep_password_auth.rc != 0