ref(playbook): Change to role-based structure

This commit is contained in:
Marty Oehme 2025-02-28 20:57:34 +01:00
parent 95fd68bed8
commit b3b280fbe4
Signed by: Marty
GPG key ID: 4E535BC19C61886E
39 changed files with 635 additions and 601 deletions

View file

@ -1,6 +1,9 @@
---
- name: Import host tasks
ansible.builtin.import_playbook: books/host.yaml
- name: Prepare host system
hosts: hostsystem
become: true
roles:
- host
# Get python onto void - otherwise we can not interact through ansible
- name: Bootstrap void python
@ -12,17 +15,35 @@
register: python_install
changed_when: "'installed successfully' in python_install.stdout"
- name: Import chroot void base tasks
ansible.builtin.import_playbook: books/void_base.yaml
- name: Set up target system
hosts: target_system
become: true
roles:
- role: base
tags: base
- role: user
tags: user
- role: network
tags: network
- role: backup
tags: backup
- role: keyd
tags: keyd
- name: Import chroot void network tasks
ansible.builtin.import_playbook: books/void_network.yaml
- role: wayland
tags: wayland
- role: display_manager
tags: display_manager
- role: pipewire
tags: pipewire
- role: bluetooth
tags: bluetooth
- role: power
tags: power
- role: gnupg
tags: gnupg
- name: Import chroot void wayland tasks
ansible.builtin.import_playbook: books/void_wayland.yaml
- name: Import chroot user management tasks
ansible.builtin.import_playbook: books/void_user.yaml
- name: Import chroot void customizations
ansible.builtin.import_playbook: books/void_packages.yaml
- role: fonts
tags: fonts
- role: packages
tags: packages