Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfonts

DotFonts or .fonts is an ansible role used to install fonts on the system.
By default it will install these initiall fonts:

Requirements

  • ansible >= 2.11.12

Role Variables

All the supported variables can be listed from defaults/main.yml file, here is more info about it:

  • dotfonts_install - (dict) - a dictionary that can be used to enable or disable the package installation

  • dotfonts_install_dir - (str) - a string value for the path where the fonts will be installed. (defaults "$HOME/.local/share/fonts")

  • dotfonts_files - (list) - a dict list of fonts to be installed.

Dependencies

None

Example Playbook

  • Basic default usage
---
- hosts: servers
  roles:
  - { role: mrbrandao.dotfonts }
  • Installing custom fonts
---
- hosts: servers
  vars:
    dotfonts_files:
      - name: MyFont-TTF
        url: "https://myfont.com/myfont.ttf"
        file: "{{ dotfonts_install_dir }}/myfont.ttf"
        extract: false
        clean: false

      - name: MyFont-ZIP
        url: "https://myfont.com/myfont.zip"
        file: "{{ dotfonts_install_dir }}/myfont.zip"
        extract: true # enable the file extraction
        clean: true # remove the zip file after extracted

      - name: GlobalSystemFont
        url: "https://myfont.com/myfont.otf"
        file: "/usr/share/fonts/myfont.otf"
        extract: false 
        clean: false 

  roles:
  - { role: mrbrandao.dotfonts }

License

GPL-3.0-only

Author Information

@mrbrandao - Igor Brandao - https://github.com/mrbrandao

About

Ansible role to install fonts

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors