refactored alacritty
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user