Add permitrootlogin at beginning of file
This commit is contained in:
parent
7e15e01b14
commit
fbb0b73e3a
|
@ -83,10 +83,11 @@
|
||||||
|
|
||||||
- name: disable root login (Debian >= 12)
|
- name: disable root login (Debian >= 12)
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/ssh/sshd_config.d/z-evolinux-defaults.conf
|
path: /etc/ssh/sshd_config.d/z-evolinux-users.conf
|
||||||
line: "PermitRootLogin no"
|
line: "PermitRootLogin no"
|
||||||
create: yes
|
create: yes
|
||||||
validate: '/usr/sbin/sshd -t -f %s'
|
validate: '/usr/sbin/sshd -t -f %s'
|
||||||
|
insertbefore: "BOF"
|
||||||
notify: reload sshd
|
notify: reload sshd
|
||||||
when:
|
when:
|
||||||
- evolinux_root_disable_ssh | bool
|
- evolinux_root_disable_ssh | bool
|
||||||
|
|
Loading…
Reference in a new issue