From 7a91155ac1a9e879d4afc31b75f90a4ab9bdcd2c Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Sun, 13 Jan 2019 16:53:08 +0000 Subject: [PATCH] Only install a font if missing --- .ansible/roles/linux_desktop/tasks/software.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.ansible/roles/linux_desktop/tasks/software.yaml b/.ansible/roles/linux_desktop/tasks/software.yaml index 2b87000..0ca0a50 100644 --- a/.ansible/roles/linux_desktop/tasks/software.yaml +++ b/.ansible/roles/linux_desktop/tasks/software.yaml @@ -23,6 +23,12 @@ with_items: "{{ linux_apps }}" become: true +- name: Checking for Modern Pictogram font + tags: install + stat: + path: "~/.local/share/fonts/modernpics.otf" + register: fontfile + - name: Installing fonts tags: install block: @@ -52,3 +58,4 @@ - name: Refresh font cache command: "fc-cache -f" + when: fontfile.stat.exists == false