feat(role): add fonts

Add and use JetBrains Mono.
This commit is contained in:
Oliver Davies 2022-08-01 23:29:51 -04:00
parent 4e2256ee03
commit 75e52b5e2e
2 changed files with 15 additions and 1 deletions

View file

@ -4,7 +4,7 @@ window:
font:
normal:
family: MesloLGM Nerd Font Mono
family: JetBrainsMono Nerd Font Mono
style: Regular
bold:
style: Regular

View file

@ -0,0 +1,14 @@
---
- name: Download
ansible.builtin.get_url:
dest: "{{ font_item.dest }}"
url: "{{ font_item.url }}"
loop_control:
loop_var: font_item
loop:
- url: "https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/JetBrainsMono/Ligatures/Regular/complete/JetBrains%20Mono%20Regular%20Nerd%20Font%20Complete%20Mono.ttf?raw=true"
dest: /usr/share/fonts/truetype/JetBrainsMono Nerd Font Regular
- url: "https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/JetBrainsMono/Ligatures/Italic/complete/JetBrains%20Mono%20Italic%20Nerd%20Font%20Complete%20Mono.ttf?raw=true"
dest: /usr/share/fonts/truetype/JetBrainsMono Nerd Font Italic
become: true