ITPLT-4441 use a rescue block to install the metapackage, and if it doesn't exist, install all noto packages via wildcard

This commit is contained in:
Lee Goolsbee
2025-07-12 14:04:29 -05:00
parent 9fe4ff55db
commit 34456ef433

View File

@@ -1,9 +1,15 @@
---
- name: Install Google Noto fonts for language coverage
ansible.builtin.dnf:
name:
- "google-noto-fonts-all"
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...