diff --git a/roles/configuration/tasks/main.yml b/roles/configuration/tasks/main.yml index 2b5e17d..123e940 100644 --- a/roles/configuration/tasks/main.yml +++ b/roles/configuration/tasks/main.yml @@ -89,6 +89,12 @@ regexp: "#PasswordAuthentication yes" replace: PasswordAuthentication yes + - name: SSH permit root login + ansible.builtin.replace: + path: /mnt/etc/ssh/sshd_config + regexp: "^#?PermitRootLogin.*" + replace: "PermitRootLogin yes" + - name: Enable Systemd Services ansible.builtin.command: > arch-chroot /mnt systemctl enable NetworkManager