sidn-lxd-ansible-demo/roles/lxd_container/tasks/pam_config.yml

22 lines
576 B
YAML

---
# A few updates, to disable PAM modules that slow down the
# SSH login process.
- name: Disable 'motd noupdate' in PAM for improving SSH login speed
lineinfile:
name: /etc/pam.d/sshd
regexp: '^session.*pam_motd.*noupdate'
state: absent
- name: Disable 'motd dynamic' in PAM for improving SSH login speed
lineinfile:
name: /etc/pam.d/sshd
regexp: '^session.*pam_motd.*dynamic'
state: absent
- name: Disable 'mail' in PAM for improving SSH login speed
lineinfile:
name: /etc/pam.d/sshd
regexp: '^session.*pam_mail'
state: absent