Squash merge move_to_single_file_pkgs into main
This commit is contained in:
18
tasks/helpers/nerdfont_config.yml
Normal file
18
tasks/helpers/nerdfont_config.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
# 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] }}"
|
||||
Reference in New Issue
Block a user