initial commit
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
27
roles/setup/tasks/fira_code_fonts.yml
Normal file
27
roles/setup/tasks/fira_code_fonts.yml
Normal 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
|
||||
Reference in New Issue
Block a user