Only install a font if missing

This commit is contained in:
Scott Wallace 2019-01-13 16:53:08 +00:00
parent f8fb630c42
commit 7a91155ac1

View file

@ -23,6 +23,12 @@
with_items: "{{ linux_apps }}" with_items: "{{ linux_apps }}"
become: true become: true
- name: Checking for Modern Pictogram font
tags: install
stat:
path: "~/.local/share/fonts/modernpics.otf"
register: fontfile
- name: Installing fonts - name: Installing fonts
tags: install tags: install
block: block:
@ -52,3 +58,4 @@
- name: Refresh font cache - name: Refresh font cache
command: "fc-cache -f" command: "fc-cache -f"
when: fontfile.stat.exists == false