20 lines
543 B
YAML
20 lines
543 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
|