Files
ansible/tasks/fonts.yml
T

35 lines
864 B
YAML
Raw Normal View History

---
- name: Fonts - opret fontmappe
ansible.builtin.file:
path: ~/.local/share/fonts/j
state: directory
mode: '0755'
become: false
- name: Fonts - download JetBrainsMono Nerd Font
ansible.builtin.get_url:
url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/JetBrainsMono.zip
dest: /tmp/JetBrainsMono.zip
mode: '0644'
become: false
- name: Fonts - udpak JetBrainsMono
ansible.builtin.unarchive:
src: /tmp/JetBrainsMono.zip
dest: ~/.local/share/fonts/j/
remote_src: true
creates: ~/.local/share/fonts/j/JetBrainsMonoNerdFont_Regular.ttf
become: false
- name: Fonts - slet zip-fil
ansible.builtin.file:
path: /tmp/JetBrainsMono.zip
state: absent
become: false
- name: Fonts - opdater font-cache
ansible.builtin.command:
cmd: fc-cache -f
become: false
changed_when: false