Skip to content

Commit

Permalink
Make fonts installation converge
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiklein committed Nov 3, 2023
1 parent 23c63b7 commit 8d3cecf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/cklein.fonts/defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fonts_google_families:
- Poppins
- Roboto
- Roboto+Mono
- 'Roboto Mono'
5 changes: 4 additions & 1 deletion roles/cklein.fonts/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@

- name: Install Google Fonts
ansible.builtin.unarchive:
src: 'https://fonts.google.com/download?family={{ item }}'
src: 'https://fonts.google.com/download?family={{ item | urlencode }}'
dest: '~/.local/share/fonts/{{ item }}'
# Regarding the `creates` below, strictly speaking, this file is created by the
# font cache handler.
creates: '~/.local/share/fonts/{{ item }}/.uuid'
remote_src: yes
with_items: '{{ fonts_google_families }}'
tags:
Expand Down

0 comments on commit 8d3cecf

Please sign in to comment.