diff --git a/molecule/default/playbook.yml b/molecule/default/playbook.yml index 5f152a6..a437c51 100644 --- a/molecule/default/playbook.yml +++ b/molecule/default/playbook.yml @@ -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'