Files

21 lines
710 B
YAML

---
- name: Install Google Noto fonts for language coverage
block:
- name: Try to install google-noto-fonts-all package
ansible.builtin.dnf:
name:
- "google-noto-fonts-all"
rescue:
- name: Install individual google-noto packages if meta package not available
ansible.builtin.dnf:
name: "google-noto-*"
- name: Link the language fonts into the JDK
# Not idiomatic, but cleaner than messing with nested lookups...
ansible.builtin.shell:
cmd: "ln -sf /usr/share/fonts/google-noto*/* {{ item }}/"
creates: "{{ item }}/NotoSansJavanese-Regular.ttf"
with_items: "{{ atl_fonts_fallback_dirs }}"
changed_when: false # For Molecule idempotence check