Files
ansible-collection-hardening/roles/os_hardening/tasks/pam_rhel.yml
T
Sebastian Gumprich 85aa1b22b3 do not force type of ssh_gateway_ports (#765)
* do not force type of gatewayports-var

this way it can be a bool or a string. we also now test for it

Signed-off-by: Sebastian Gumprich <[email protected]>

* replace yum with dnf

Signed-off-by: Sebastian Gumprich <[email protected]>

---------

Signed-off-by: Sebastian Gumprich <[email protected]>
2024-05-31 12:20:00 +02:00

44 lines
1.0 KiB
YAML

---
- name: Install sssd-clients
ansible.builtin.dnf:
name: sssd-client
state: present
when:
- os_auth_pam_sssd_enable | bool
- name: Configure passwdqc and faillock via central system-auth config
ansible.builtin.template:
src: etc/pam.d/rhel_auth.j2
dest: /etc/pam.d/system-auth-local
mode: "0640"
owner: root
group: root
- name: Enable our config for system-auth
ansible.builtin.file:
src: /etc/pam.d/system-auth-local
dest: /etc/pam.d/system-auth
mode: "0640"
owner: root
group: root
state: link
force: true
- name: Configure passwdqc and faillock via central password-auth config
ansible.builtin.template:
src: etc/pam.d/rhel_auth.j2
dest: /etc/pam.d/password-auth-local
mode: "0640"
owner: root
group: root
- name: Enable our config for password-auth
ansible.builtin.file:
src: /etc/pam.d/password-auth-local
dest: /etc/pam.d/password-auth
mode: "0640"
owner: root
group: root
state: link
force: true