refactored alacritty

This commit is contained in:
Matthew Stobbs
2025-03-24 21:42:43 -06:00
parent d30927930c
commit 4290535b3c
5 changed files with 33 additions and 57 deletions

View File

@@ -1,6 +1,6 @@
# vim: set filetype=yaml.ansible :
---
- name: Add alacritty
- name: Append alacritty
when:
- alacritty_configured is undefined
block:
@@ -8,26 +8,21 @@
ansible.builtin.include_tasks:
file: config/alacritty.yml
- name: Linux based installation
- name: Append alacritty to pkg_cargo
when:
- ansible_system == 'Linux'
block:
- name: Append alacritty build_deps to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + alacritty.build_deps }}"
- name: Append alacritty to pkg_cargo
notify:
- Depend cargo
changed_when: true
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + [alacritty] }}"
- alacritty.method == 'cargo'
notify:
- Depend cargo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + alacritty.build_deps }}"
pkg_cargo: "{{ pkg_cargo + [alacritty.cargo] }}"
- name: Append alacritty to pkg_cask
when:
- ansible_system == 'Darwin'
- alacritty.method == 'cask'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + alacritty.cask }}"
pkg_cask: "{{ pkg_cask + ['alacritty'] }}"
- name: Set alacritty_configured
ansible.builtin.set_fact: