Files
ansible_role_package/tasks/pkgs/nerdfonts.yml
2025-01-25 16:07:24 -07:00

21 lines
550 B
YAML

---
- ansible.builtin.include_vars:
file: nerdfonts.yml
name: _nerdfonts
- ansible.builtin.set_fact:
pkgconfig:
nerdfonts: "{{ _nerdfonts | ansible.builtin.combine(pkgconfig.nerdfons) }}"
- name: append to srcpkgs
when: ansible_system == 'Linux'
set_fact:
srcpkgs: "{{ srcpkgs + [ 'nerdfonts' ] }}"
- name: append to caskpkgs
when: ansible_system == 'Darwin'
set_fact:
caskpkgs: "{{ caskpkgs + [ 'font-' + font.brew + '-nerd-font' ] }}"
loop: "{{ pkgconfig.nerdfonts.fonts }}"
loop_control:
loop_var: font