Enable root ssh login

This commit is contained in:
Sandwich 2024-10-30 18:54:15 +01:00
parent fe2b216fc7
commit 6705411b2d

View File

@ -89,6 +89,12 @@
regexp: "#PasswordAuthentication yes" regexp: "#PasswordAuthentication yes"
replace: 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 - name: Enable Systemd Services
ansible.builtin.command: > ansible.builtin.command: >
arch-chroot /mnt systemctl enable NetworkManager arch-chroot /mnt systemctl enable NetworkManager