ansible-role-font

Ansible role for installing font

MIT License

Stars
0
Committers
2

Font

This role can be used to install font in Linux

Requirements

  • Ansible Core >= 2.1
  • Tested Linux Distribution
    • Debian 12
    • Ubuntu 24.04
    • Linux Mint 21.3
    • Fedora 40

Note: Other distributions likely to work but not been tested

Role Variables

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'

Example Playbook


- 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

License

MIT

Author Information

Laba Subagia