DCD-1020: Add installation and linking of Google Noto fonts as JVM fallbacks.

This commit is contained in:
Steve Smith
2020-08-24 13:05:42 +10:00
parent d22c0222ed
commit 25c2ebb563
5 changed files with 54 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
---
- name: Install Google Noto fonts for language coverage
yum:
name:
- "google-noto-*"
- name: Link the language fonts into the JDK/JRE
# Not idiomatic, but cleaner that messing with nested lookups...
shell:
cmd: "ln -sf /usr/share/fonts/google-noto*/* {{ item }}/"
creates: "{{ item }}/NotoSansJavanese-Regular.ttf"
warn: false
with_items: "{{ atl_fonts_fallback_dirs }}"
changed_when: false # For Molecule idempotence check

View File

@@ -125,3 +125,13 @@
tags:
- skip_on_stack_update
ignore_errors: yes # For Molecule as it has no db test framework included
- name: Create JVM font fallback directories
file:
path: "{{ item }}"
state: directory
mode: 0755
with_items: "{{ atl_fonts_fallback_dirs }}"
- name: Install & configure distro language fonts
include_tasks: "{{ ansible_distribution|lower }}_fonts.yml"

View File

@@ -0,0 +1,15 @@
---
- name: Install Google Noto fonts for language coverage
package:
name:
- "fonts-noto"
- name: Link the language fonts into the JDK/JRE
# Not idiomatic, but cleaner that messing with nested lookups...
shell:
cmd: "ln -sf /usr/share/fonts/truetype/noto/* {{ item }}/"
creates: "{{ item }}/NotoSansJavanese-Regular.ttf"
warn: false
with_items: "{{ atl_fonts_fallback_dirs }}"
changed_when: false # For Molecule idempotence check