This role can be used to install font in Linux
Note: Other distributions likely to work but not been tested
The following variables will change the behavior of this role (default values are shown below):
# Archive font url (usually zip)
font_url: https://github.com/adobe-fonts/source-sans/releases/download/3.052R/TTF-source-sans-3.052R.zip
# Installed font directory
font_dir: "{{ ansible_env.HOME }}/.fonts"
# State of font (present or absent)
font_state: 'present'
- hosts: servers
roles:
- role: labasubagia.font
vars:
font_url: https://github.com/adobe-fonts/source-sans/releases/download/3.052R/TTF-source-sans-3.052R.zip
font_dir: ~/.local/share/fonts
font_state: present
MIT