1
0
Fork 0
mirror of https://github.com/geerlingguy/ansible-role-postgresql.git synced 2024-11-11 13:50:50 -05:00

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

View file

@ -10,6 +10,17 @@
- name: jdoe
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.
apt: update_cache=true cache_valid_time=600
when: ansible_os_family == 'Debian'