mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 00:13:09 -06:00
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:
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user