ctorgalson.nerdfonts

Ansible Role NerdFonts

This is an Ansible role for installing Nerd Fonts on Linux and macOS.

Currently, it downloads individual font files from GitHub directly, instead of cloning the entire repository (because it’s very large!).

Requirements

No special requirements are needed.

Role Variables

Variable Name Default Value Description
nf_user '' User name for font installation. This is required.
nf_group not set Group name for the user. This is required.
nf_linux_fonts_dir /home/{{ nf_user }}/.local/share/fonts/NerdFonts Default location for fonts on Linux.
nf_macos_fonts_dir /Users/{{ nf_user }}/Library/Fonts Default location for fonts on macOS.
nf_github_raw_patched_fonts https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts Location to download font files from.
nf_single_fonts [] List of individual fonts to download, relative to nf_github_raw_patched_fonts. This is required.

Dependencies

No special dependencies are needed.

Example Playbook

---
- name: Sample playbook for Ansible Role NerdFonts
  hosts: all
  vars:
    nf_user: "molecule"
    nf_group: "{{ nf_user }}"
    nf_single_fonts:
     - "UbuntuMono/Regular/complete/Ubuntu Mono Nerd Font Complete.ttf"
     - "AurulentSansMono/complete/AurulentSansMono-Regular Nerd Font Complete.otf"
  tasks:
    - name: "Include ansible-role-nerdfonts"
      include_role:
        name: "ansible-role-nerdfonts"

License

GPLv3

Informazioni sul progetto

An Ansible role to install some/all Nerdfonts on Linux and macOS.

Installa
ansible-galaxy install ctorgalson.nerdfonts
Licenza
gpl-3.0
Download
1.3k
Proprietario