Add nerdfonts download for Debian
This commit is contained in:
parent
8ef26aedb4
commit
4bb28b4025
2 changed files with 27 additions and 2 deletions
3
roles/terminator/handlers/main.yml
Normal file
3
roles/terminator/handlers/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- name: Reload font cache
|
||||
command: fc-cache -fv
|
|
@ -23,15 +23,37 @@
|
|||
clone: true
|
||||
update: false
|
||||
version: master
|
||||
- name: Make and install librewolf (Archlinux)
|
||||
- name: Make and install nerd-fonts-fira-code (Archlinux)
|
||||
command:
|
||||
cmd: makepkg -cirs --needed
|
||||
chdir: ~/builds/nerd-fonts-fira-code
|
||||
stdin: Y
|
||||
register: result
|
||||
changed_when: "'installing existing package' not in result.stderr"
|
||||
notify: Reload font cache
|
||||
|
||||
# TODO: Install nerd-fonts-fira-code for Debian
|
||||
- name: Install Nerd Fonts patch of FiraCode (Debian)
|
||||
when: ansible_facts['distribution'] == 'Debian'
|
||||
block:
|
||||
- name: Create local fonts directory
|
||||
file:
|
||||
path: ~/.local/share/fonts
|
||||
state: directory
|
||||
mode: 0755
|
||||
- name: Find latest nerdfonts version
|
||||
uri:
|
||||
url: https://github.com/ryanoasis/nerd-fonts/releases/latest
|
||||
register: latest_http_content
|
||||
- name: Set latest nerdfonts version
|
||||
set_fact:
|
||||
nerdfonts_version: "{{ latest_http_content.url | split('/') | last }}"
|
||||
- name: Get latest Nerd Fonts FiraCode zipfile
|
||||
unarchive:
|
||||
src: "https://github.com/ryanoasis/nerd-fonts/releases/download/{{ nerdfonts_version }}/FiraCode.zip"
|
||||
remote_src: true
|
||||
dest: ~/.local/share/fonts/
|
||||
mode: 0644
|
||||
notify: Reload font cache
|
||||
|
||||
- name: Copy terminator config
|
||||
copy: src={{ item.src }} dest={{ item.dest }} mode=0644
|
||||
|
|
Loading…
Add table
Reference in a new issue