Copy FiraCode Nerd Fonts install to i3 role
This commit is contained in:
parent
58a6dfc35c
commit
f004ffe1df
1 changed files with 42 additions and 0 deletions
|
@ -59,6 +59,48 @@
|
|||
- xsettingsd
|
||||
when: ansible_facts['distribution'] == 'Debian'
|
||||
|
||||
- name: Install Nerd Fonts patch of FiraCode (Archlinux)
|
||||
when: ansible_facts['distribution'] == 'Archlinux'
|
||||
block:
|
||||
- name: Clone nerd-fonts-fira-code (Archlinux)
|
||||
git:
|
||||
repo: https://aur.archlinux.org/nerd-fonts-fira-code.git
|
||||
dest: ~/builds/nerd-fonts-fira-code
|
||||
clone: true
|
||||
update: false
|
||||
version: master
|
||||
- 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
|
||||
|
||||
- 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: Clone repos
|
||||
git: repo={{ item.repo }} dest={{ item.dest }} clone=true update=false version=master
|
||||
with_items:
|
||||
|
|
Loading…
Add table
Reference in a new issue