Add some font shizzle to the Linux desktop install process

This commit is contained in:
Scott Wallace 2019-01-13 10:44:46 +00:00
parent 5848e76af8
commit 1c5646bbc7
2 changed files with 31 additions and 0 deletions

View file

@ -22,3 +22,33 @@
command: "snap install {{ item }}"
with_items: "{{ linux_apps }}"
become: true
- name: Installing fonts
tags: install
block:
- name: Create temporary file for Modern Pictograms font
tempfile:
state: file
suffix: ".zip"
register: fontzip
- name: Download Modern Pictograms font
get_url:
url: https://www.fontsquirrel.com/fonts/download/modern-pictograms
dest: "{{ fontzip.path }}"
force: true
register: fetchurl
- name: Unzip Modern Pictograms font
unarchive:
src: "{{ fontzip.path }}"
dest: "~/.local/share/fonts"
exclude: "*.txt"
- name: Remove temporary file
file:
path: "{{ fontzip.path }}"
state: absent
- name: Refresh font cache
command: "fc-cache -f"

View file

@ -30,6 +30,7 @@ linux_packages:
- resilio-sync
- screen
- sonos-controller-unofficial
- ttf-mscorefonts-installer
- units
- vim
- wireshark-qt