19 lines
668 B
YAML
19 lines
668 B
YAML
# vim: set filetype=yaml.ansible :
|
|
---
|
|
- 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: Append config to pkg archive
|
|
ansible.builtin.set_fact:
|
|
pkg_archive: "{{ pkg_archive + [__font_config] }}"
|