/ansible-nerdfonts

Cross-platform ansible role for NerdFonts installation.

MIT LicenseMIT

Ansible role: nerdfonts

MIT licensed Galaxy Role

Cross-platform ansible role for NerdFonts (on GitHub) installation.

Requirements

One of the following OS (or deriviatives):

NOTE:

  • Role requires Fact Gathering by ansible!
  • On MacOS only user-specific installation from Homebrew is available

For MacOS: if Homebrew is not installed on the managed host, install the following role via galaxy:

ansible-galaxy install drew-kun.homebrew

And include it in the playbook:

roles:
    - drew-kun.homebrew

Role Variables

OS-Agnostic:

Variable Description Default
nerdfonts_fonts[] List of nerdfonts to be installed see defaults/main.yml

Debian-Specific:

Variable Description Default
nerdfonts_env Install fonts system- or user-wide system
nerdfonts_deb_fonts_sys_dir System-wide fonts directory /usr/local/share/fonts
nerdfonts_deb_fonts_user_dir User-specific fonts directory ~/.local/share/fonts
nerdfonts_users[] List of users nerdfonts to be installed see vars/Debian.yml

MacOS-Specific:

Variable Description Default
nerdfonts_mono Install mono font from homebrew cask no

Dependencies

None

Example Playbook

- hosts: dev_clients_macos
  gather_facts: yes
  roles:
  - drew-kun.homebrew
  - drew-kun.nerdfonts

License

MIT

Author Information

Andrew Shagayev | e-mail