initial commit

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2025-01-21 23:13:01 +01:00
commit 40a7e1dab7
19 changed files with 475 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
---
- name: Create fonts directory
file:
path: "{{ ansible_env.HOME }}/.fonts"
state: directory
mode: "0755"
- name: Download FiraCode Nerd Font zip
get_url:
url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/FiraMono.zip
dest: "/tmp/FiraMono.zip"
- name: Extract FiraCode from zip
unarchive:
src: "/tmp/FiraMono.zip"
dest: "{{ ansible_env.HOME }}/.fonts"
remote_src: yes
- name: Remove FiraMono.zip
file:
path: "/tmp/FiraMono.zip"
state: absent
- name: Refresh font cache
shell: fc-cache -fv
args:
warn: false