- if config is needed, it has a file in vars/ - all imported vars for pkgs are namespaced with _<pkgname>
32 lines
733 B
YAML
32 lines
733 B
YAML
---
|
|
- ansible.builtin.include_vars:
|
|
file: alacritty.yml
|
|
name: _alacritty
|
|
|
|
- name: linux based installation
|
|
when: ansible_system == 'Linux'
|
|
block:
|
|
- name: install rust and cargo
|
|
ansible.builtin.include_tasks:
|
|
file: "pkgs/{{ ansible_os_family }}/rust.yml"
|
|
tags:
|
|
- rust
|
|
- dependency
|
|
|
|
- name: append to pkgs
|
|
set_fact:
|
|
syspkgs: "{{ syspkgs + _alacritty[ansible_distribution].build_deps }}"
|
|
srcpkgs: "{{ srcpkgs + [ 'alacritty' ] }}"
|
|
tags:
|
|
- syspkgs
|
|
- srcpkgs
|
|
|
|
- name: append alacritty to caskpkgs
|
|
set_fact:
|
|
caskpkgs: "{{ caskpkgs + [ 'alacritty' ] }}"
|
|
when: ansible_system == 'Darwin'
|
|
tags:
|
|
- MacOS
|
|
- brew
|
|
- package
|