ansible-edda/playbooks/tasks/hosts/root-shell.yml

11 lines
208 B
YAML
Raw Normal View History

2022-09-11 20:55:30 +02:00
- name: Disable root shell
user:
name: root
shell: /usr/sbin/nologin
- name: Disable su for non-wheel users
copy:
2022-09-21 23:57:15 +02:00
src: ./filesystem/common/etc/pam.d/su
2022-09-11 20:55:30 +02:00
dest: /etc/pam.d/su
mode: 0644