You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.1 KiB
62 lines
1.1 KiB
---
|
|
- name: Install system.
|
|
hosts: all
|
|
user: root
|
|
|
|
tasks:
|
|
- name: Check if live iso.
|
|
command: arch-chroot
|
|
failed_when: false
|
|
register: result
|
|
changed_when: false
|
|
|
|
- name: Set arch chroot fact.
|
|
set_fact:
|
|
is_live_iso: "{{ result.rc == 1 }}"
|
|
|
|
- name: Include tasks.
|
|
include_role:
|
|
name: "{{ item }}"
|
|
with_items:
|
|
- passwordless_connection
|
|
- prep
|
|
- disk
|
|
- configure
|
|
when: is_live_iso
|
|
|
|
- name: Reboot system
|
|
reboot:
|
|
when: is_live_iso
|
|
|
|
- name: Configure system.
|
|
hosts: all
|
|
user: root
|
|
|
|
roles:
|
|
- kewlfft.aur
|
|
- hostname
|
|
- localtime
|
|
- locale
|
|
- create_user
|
|
- paru
|
|
- name: nvidia
|
|
when: feat_nvidia
|
|
- display_server
|
|
- display_manager
|
|
- window_manager
|
|
- common_software
|
|
- name: bluetooth
|
|
when: feat_bluetooth
|
|
- audio
|
|
- mullvad
|
|
- docker
|
|
- yubikey
|
|
- name: u2f
|
|
when: feat_u2f
|
|
- dotfiles
|
|
- cleanup
|
|
|
|
tasks:
|
|
- name: Reboot system.
|
|
command: reboot
|
|
changed_when: true
|
|
|