generalize zsh role to support darwin

This commit is contained in:
Clément Désiles
2026-09-18 11:32:06 +02:00
parent fd8c64aed1
commit 30480f61d5
6 changed files with 61 additions and 23 deletions
+12 -2
View File
@@ -1,16 +1,26 @@
---
- name: Install zsh
- name: Install zsh (Linux)
ansible.builtin.package:
name: zsh
state: present
when: not (zsh_os_darwin | bool)
- name: Install eza (better ls)
- name: Install eza (Linux)
ansible.builtin.package:
name: eza
state: present
when: not (zsh_os_darwin | bool)
- name: Install eza (macOS)
community.general.homebrew:
name: eza
state: present
become: false
when: zsh_os_darwin | bool
- name: Install alacritty terminfo
ansible.builtin.include_tasks: alacritty-terminfo.yml
when: not (zsh_os_darwin | bool)
- name: Install zsh plugins
ansible.builtin.include_tasks: plugins.yml