32 lines
975 B
YAML
32 lines
975 B
YAML
---
|
|
# cli_modern — main task dispatcher
|
|
# Routes to OS-specific package installation, then shared config tasks.
|
|
|
|
- name: Gather OS family facts
|
|
ansible.builtin.setup:
|
|
filter: ansible_os_family
|
|
when: ansible_os_family is not defined
|
|
|
|
- name: Include OS-specific package tasks
|
|
ansible.builtin.include_tasks: "packages-{{ ansible_os_family | lower }}.yml"
|
|
|
|
- name: Install Starship via official script
|
|
ansible.builtin.include_tasks: starship.yml
|
|
when: cli_modern_install_starship
|
|
|
|
- name: Install Fisher and plugins
|
|
ansible.builtin.include_tasks: fisher.yml
|
|
when: cli_modern_install_fisher
|
|
|
|
- name: Deploy shell configuration
|
|
ansible.builtin.include_tasks: config.yml
|
|
|
|
- name: Set Fish as default shell
|
|
ansible.builtin.include_tasks: default-shell.yml
|
|
when: cli_modern_set_default_shell
|
|
|
|
# Phase 2: Chezmoi dotfile orchestration
|
|
- name: Install Chezmoi and apply dotfiles
|
|
ansible.builtin.include_tasks: chezmoi.yml
|
|
when: cli_modern_install_chezmoi
|