--- - 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 debian" ansible.builtin.include_tasks: "install-debian.yml" when: ansible_os_family == "Debian"