more fixes, more config

This commit is contained in:
Matthew Stobbs
2025-01-25 17:39:49 -07:00
parent 00e08c5997
commit 4665de577e
18 changed files with 61 additions and 70 deletions

View File

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