From 8264ba3b81f766e26bcfc123439d7e702f440300 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 15 Aug 2022 18:57:42 +0100 Subject: [PATCH] Add macOS check for fonts --- roles/home-gui/tasks/fonts.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/home-gui/tasks/fonts.yml b/roles/home-gui/tasks/fonts.yml index 701f69e..3d9f0b4 100644 --- a/roles/home-gui/tasks/fonts.yml +++ b/roles/home-gui/tasks/fonts.yml @@ -16,10 +16,14 @@ - name: Set Linux font directory set_fact: font_dir: "{{ ansible_env.HOME }}/.local/share/fonts" -- name: Set MacOS font directory +- name: Set MacOSX font directory set_fact: font_dir: "{{ ansible_env.HOME }}/Library/Fonts" - when: ansible_distribution == 'MacOS' + when: ansible_distribution == 'MacOSX' +- name: Set macOS font directory + set_fact: + font_dir: "{{ ansible_env.HOME }}/Library/Fonts" + when: ansible_distribution == 'macOS' - name: Create ~/.local/share/fonts/texgyre directory ansible.builtin.file: