dotfiles/.config/ansible/roles/arch/packages/tasks/main.yml
Sergio Laín 23c129bf01
feat(ansible): added modules for a more customizable installation instead of just minimal and full
gaming, coding and multimedia (i still had to do the last)
2023-11-20 00:36:57 +01:00

57 lines
1.4 KiB
YAML

- name: Ask user for type of install and GPU drivers
hosts: all
become: true
gather_facts: false
vars_prompt:
- name: gpu_driver_choice
prompt: "What drivers do you want for your gpu?"
choices:
- "NVIDIA"
- "AMD"
- "Intel"
private: no
- name: enable_coding_module
prompt: "Do you want to install the coding packages?"
type: list
choices:
- "Yes"
- "No"
private: no
- name: enable_gaming_module
prompt: "Do you want to install the gaming packages?"
type: list
choices:
- "Yes"
- "No"
private: no
- name: enable_multimedia_module
prompt: "Do you want to install the multimedia packages?"
type: list
choices:
- "Yes"
- "No"
private: no
block:
- name: Install base packages for the system
include_tasks: base.yml
- name: Install GPU drivers
include_tasks: "drivers/{{ gpu_driver_choice | lower }}.yml"
when: gpu_driver_choice is defined
- name: Install coding packages
include_tasks: "modules/coding.yml"
when: enable_coding_module == "Yes"
- name: Install gaming packages
include_tasks: "modules/gaming.yml"
when: enable_gaming_module == "Yes"
- name: Install multimedia packages
include_tasks: "modules/multimedia.yml"
when: enable_multimedia_module == "Yes"