-
Notifications
You must be signed in to change notification settings - Fork 3
/
fonts.yml
executable file
·36 lines (32 loc) · 1019 Bytes
/
fonts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env ansible-playbook
---
- hosts: pladd-laptop
name: Font_install
vars:
fonts: # NOTE: Name can't contain spaces
- name: Cousine
url: https://fonts.google.com/download?family=Cousine
- name: Red_Hat_Display
url: https://fonts.google.com/download?family=Red%20Hat%20Display
- name: Red_Hat_Text
url: https://fonts.google.com/download?family=Red%20Hat%20Text
- name: Red_Hat_Mono
url: https://fonts.google.com/download?family=Red%20Hat%20Mono
tasks:
- name: Font_directory
ansible.builtin.file:
dest: /usr/share/fonts/{{ item.name }}
state: directory
mode: u+rwx,go+rx
loop: "{{ fonts }}"
- name: Donwload_font
ansible.builtin.unarchive:
remote_src: true
src: "{{ item.url }}"
dest: /usr/share/fonts/{{ item.name }}
loop: "{{ fonts }}"
notify: refresh_font_cache
handlers:
- name: Refresh_font_cache
ansible.builtin.command: fc-cache -v
...