working on nerdfonts still

This commit is contained in:
Matthew Stobbs
2026-02-10 16:13:44 -07:00
parent 906603b6d4
commit 2c1f4ec422
6 changed files with 74 additions and 88 deletions

View File

@@ -0,0 +1,27 @@
# vim: set filetype=yaml.ansible :
---
- name: Load nerdfonts list
ansible.builtin.include_vars:
file: nerdfonts.yml
name: __nerdfonts
- name: Generate nerdfont configs
when:
- __nerdfonts[nf] is defined
ansible.builtin.set_fact:
__font_config:
extract_to: "{{ path_archive }}/nerdfonts/{{ nf }}"
url: "{{ nerdfonts_base_url }}/{{ __nerdfonts[nf]['archive'] | default(nf) }}.tar.xz"
name: "{{ __nerdfonts[nf]['archive'] | default(nf) }}.tar.xz"
links:
- from: "{{ path_archive }}/nerdfonts/{{ nf }}"
to: "{{ install_prefix }}/{{ nerdfonts_install_path }}/{{ nf }}"
force: true
- name: Dump current nerdfont config
ansible.builtin.debug:
var: __font_config
- name: Append config to pkg archive
ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + [__font_config] }}"