Only install a font if missing
This commit is contained in:
parent
f8fb630c42
commit
7a91155ac1
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue