From c1f47b991f33bd240d8db94af873c910c2176540 Mon Sep 17 00:00:00 2001 From: ace Date: Tue, 3 Oct 2023 14:00:05 +0300 Subject: [PATCH] add locales for debian based os --- tasks/locale.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/locale.yaml b/tasks/locale.yaml index 6ec11c0..b759ead 100644 --- a/tasks/locale.yaml +++ b/tasks/locale.yaml @@ -4,6 +4,12 @@ state: present when: ansible_facts['os_family'] == 'RedHat' +- name: Install locales-all for Debian + apt: + name: locales-all + state: present + when: ansible_distribution_file_variety == 'Debian' + - name: Check if locale exists shell: "locale -a | grep -i {{ patroni_postgresql_system_locale | regex_replace('-', '') | quote }}" register: found_locale