Add macOS check for fonts
This commit is contained in:
parent
b4f8577c8f
commit
8264ba3b81
1 changed files with 6 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue