summaryrefslogtreecommitdiffstats
path: root/roles/bootstrap/tasks/main.yml
blob: 723561d6f8f97fabd15a7c3e0cf7df75961a97a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- name: "Set root,boot partition paths"
  ansible.builtin.set_fact:
    # noqa: var-naming[no-role-prefix] as these facts are used for multiple roles and is easier read this way
    mnt_boot_path: "{{ partition_boot.mount_path }}"
    mnt_root_path: "{{ partition_root.mount_path }}"

- name: "Install archlinux"
  ansible.builtin.include_tasks: "install-archlinux.yml"
  when: ansible_os_family == "Archlinux"

- name: "Install ubuntu"
  ansible.builtin.include_tasks: "install-ubuntu.yml"
  when: ansible_os_distribution == "Ubuntu"