Add macOS check for fonts

This commit is contained in:
Anthony Rose 2022-08-15 18:57:42 +01:00
parent b4f8577c8f
commit 8264ba3b81

View file

@ -16,10 +16,14 @@
- name: Set Linux font directory - name: Set Linux font directory
set_fact: set_fact:
font_dir: "{{ ansible_env.HOME }}/.local/share/fonts" font_dir: "{{ ansible_env.HOME }}/.local/share/fonts"
- name: Set MacOS font directory - name: Set MacOSX font directory
set_fact: set_fact:
font_dir: "{{ ansible_env.HOME }}/Library/Fonts" 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 - name: Create ~/.local/share/fonts/texgyre directory
ansible.builtin.file: ansible.builtin.file: