---
- name: Import host tasks
  ansible.builtin.import_playbook: books/host.yaml

# Get python onto void - otherwise we can not interact through ansible
- name: Bootstrap void python
  hosts: target_system
  gather_facts: false
  tasks:
    - name: install python
      raw: test -e /usr/bin/python || xbps-install -y python
      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: Import chroot void network tasks
  ansible.builtin.import_playbook: books/void_network.yaml

- 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