This commit is contained in:
user
2023-07-15 19:39:13 -05:00
parent 8ec6063d6f
commit 9c2035e09c
19 changed files with 196 additions and 227 deletions

21
scripts/install_fonts.yml Normal file
View File

@@ -0,0 +1,21 @@
- name: ensure fonts directory
become_user: user
file:
path: "~/.fonts"
state: directory
- name: FiraCode exists
become_user: user
shell: "ls ~/.fonts/*{{ item.name }}*"
register: FiraCode_exists
ignore_errors: yes
with_items: "{{ fonts }}"
- name: Download FiraCode
when: FiraCode_exists is failed
become_user: user
ansible.builtin.unarchive:
src: "{{ item.url }}"
dest: "~/.fonts/"
remote_src: yes
with_items: "{{ fonts }}"