Skip to content

Commit

Permalink
make compatible to authconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
schurzi committed Feb 13, 2021
1 parent 7282187 commit 95db263
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions roles/os_hardening/tasks/pam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,25 @@
- ansible_facts.os_family == 'RedHat'
- not os_auth_pam_passwdqc_enable

- name: configure passwdqc and faillock via central system-auth confic
- name: configure passwdqc and faillock via central system-auth config
template:
src: 'etc/pam.d/rhel_system_auth.j2'
dest: '/etc/pam.d/system-auth-ac'
dest: '/etc/pam.d/system-auth-local'
mode: '0640'
owner: 'root'
group: 'root'
when: ansible_facts.os_family == 'RedHat'

- name: enable our config for system-auth
file:
src: /etc/pam.d/system-auth-local
dest: /etc/pam.d/system-auth
mode: '0640'
owner: 'root'
group: 'root'
state: link
when: ansible_facts.os_family == 'RedHat'

- name: NSA 2.3.3.5 Upgrade Password Hashing Algorithm to SHA-512
template:
src: 'etc/libuser.conf.j2'
Expand Down

0 comments on commit 95db263

Please sign in to comment.