diff --git a/roles/cklein.fonts/defaults/main.yaml b/roles/cklein.fonts/defaults/main.yaml index b542144..8d132a1 100644 --- a/roles/cklein.fonts/defaults/main.yaml +++ b/roles/cklein.fonts/defaults/main.yaml @@ -1,4 +1,4 @@ fonts_google_families: - Poppins - Roboto - - Roboto+Mono + - 'Roboto Mono' diff --git a/roles/cklein.fonts/tasks/main.yaml b/roles/cklein.fonts/tasks/main.yaml index 413b3fb..0ea5061 100644 --- a/roles/cklein.fonts/tasks/main.yaml +++ b/roles/cklein.fonts/tasks/main.yaml @@ -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: