From 6705411b2d76802bb3fb756c232f1ef549973756 Mon Sep 17 00:00:00 2001 From: Sandwich Date: Wed, 30 Oct 2024 18:54:15 +0100 Subject: [PATCH] Enable root ssh login --- roles/configuration/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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