Skip to content

alexander-danilenko/ansible-role-google-fonts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role for Google Fonts

License: MIT

This repo contains Ansible role that installs fonts from the Google Fonts library to the target host system using Google Webfonts Helper service.

Requirements

Following system packages are required and will be installed if needed:

  • curl
  • tar

Example Ansible Playbook

- hosts: 127.0.0.1
  roles:
    - role: ansible-role-google-fonts
      vars:
        google_fonts_install_dir: '{{ ansible_env.HOME }}/.fonts'
        google_fonts_download_formats: [ttf]
        google_fonts_list:
          - jetbrains-mono
          - open-sans
          - open-sans-condensed
          - roboto
          - roboto-condensed
          - roboto-mono
          - roboto-slab
          - ubuntu
          - ubuntu-condensed
          - ubuntu-mono

Where can I find font ids?

  • :godmode: Option 1 (recommended):

    The following command will print all available font ids to a terminal.

    curl https://gwfh.mranftl.com/api/fonts/ | jq -r ".[].id" | sort

    ⚠️ Note: command relies on jq and curl packages that needs to be installed first.

  • :feelsgood: Option 2:

    Find in raw JSON fonts list: https://gwfh.mranftl.com/api/fonts

Author

👤 Alexander Danilenko

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

Special thanks

Mario Ranftl and all project contributors of the awesome Google Webfonts Helper!


📝 License

Copyright © 2022 Alexander Danilenko.
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

About

Ansible role to install fonts from Google Fonts library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published