diff --git a/evolinux-base/tasks/root.yml b/evolinux-base/tasks/root.yml index c7d7f1bd..2558897e 100644 --- a/evolinux-base/tasks/root.yml +++ b/evolinux-base/tasks/root.yml @@ -102,7 +102,7 @@ - ansible_distribution_major_version is version('11', '<=') - name: disable SSH access for root (Debian <= 12) - replace: + ansible.builtin.replace: path: /etc/ssh/sshd_config.d/z-evolinux-defaults.conf line: "PermitRootLogin no" create: yes diff --git a/evolinux-users/tasks/ssh.yml b/evolinux-users/tasks/ssh.yml index 3a03e175..7998b714 100644 --- a/evolinux-users/tasks/ssh.yml +++ b/evolinux-users/tasks/ssh.yml @@ -67,7 +67,7 @@ - ansible_distribution_major_version is version('11', '<=') - name: disable root login (Debian <= 12) - replace: + ansible.builtin.replace: path: /etc/ssh/sshd_config.d/z-evolinux-defaults.conf line: "PermitRootLogin no" create: yes