Configuration role refactor and network template

This commit is contained in:
2025-12-26 20:38:42 +01:00
parent 732784fa2d
commit efad1b9a67
11 changed files with 498 additions and 330 deletions

View File

@@ -0,0 +1,14 @@
---
- name: Enable Systemd Services
ansible.builtin.command: >
arch-chroot /mnt systemctl enable NetworkManager
{{
' ssh' if os | lower in ['ubuntu', 'ubuntu-lts'] else
(' sshd' if os | lower not in ['debian11', 'debian12', 'debian13'] else '')
}}
{{
'logrotate systemd-resolved systemd-timesyncd systemd-networkd'
if os | lower == 'archlinux' else ''
}}
register: configuration_enable_services_result
changed_when: configuration_enable_services_result.rc == 0