diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-04-01 16:54:30 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-04-01 17:31:35 +0200 |
| commit | 17c8e8198486d22ab3de510c984d96313475fe24 (patch) | |
| tree | ae1a2b967860be1357773c25dc934ed1c2b349d4 /roles/font/tasks/main.yml | |
| parent | 5a7d58027f6e57cba6ce633fb291662f45c30bd4 (diff) | |
Replace AUR font package installing with google fonts via gstatic
Diffstat (limited to 'roles/font/tasks/main.yml')
| -rw-r--r-- | roles/font/tasks/main.yml | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/roles/font/tasks/main.yml b/roles/font/tasks/main.yml index 4753a161..1626b2f4 100644 --- a/roles/font/tasks/main.yml +++ b/roles/font/tasks/main.yml @@ -45,5 +45,19 @@ state: "link" loop: "{{ font_presets }}" -- name: "Ensure OS-specific fonts are installed" - ansible.builtin.include_tasks: "install-{{ ansible_facts['os_family'] | lower }}.yml" +- name: "Ensure Google Fonts directory exists" + become: true + ansible.builtin.file: + path: "/usr/share/fonts/google-fonts" + state: "directory" + mode: "0755" + +- name: "Install Google Fonts" + become: true + ansible.builtin.get_url: + url: "{{ item.url }}" + dest: "/usr/share/fonts/google-fonts/{{ item.dest }}" + mode: "0644" + loop: "{{ font_google_fonts }}" + notify: + - "Update font-cache" |
