Fix CI on Fedora 30 containers

by forcing the use of the C.UTF-8 locale, which is all they have
installed by default
This commit is contained in:
Mike DePaulo 2019-08-07 11:07:11 -04:00
parent 18be7ccb8c
commit 185f7bac33
1 changed files with 11 additions and 0 deletions

View File

@ -10,6 +10,17 @@
- name: jdoe - name: jdoe
pre_tasks: pre_tasks:
# The Fedora 30+ container images have only C.UTF-8 installed
- name: Set database locale if using Fedora 30+
set_fact:
postgresql_databases:
- name: example
lc_collate: 'C.UTF-8'
lc_ctype: 'C.UTF-8'
when:
- ansible_distribution == 'Fedora'
- ansible_distribution_major_version >= '30'
- name: Update apt cache. - name: Update apt cache.
apt: update_cache=true cache_valid_time=600 apt: update_cache=true cache_valid_time=600
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'