From e5b13bb9e3a97b4f5b2709de6438afceec645c34 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Tue, 3 Dec 2019 16:26:44 -0500 Subject: [PATCH] [stable-2.9] Fix setup_postgresql integration test for CestOS 8 (#64871) (#64925) (cherry picked from commit f8c741894a) Co-authored-by: Sam Doran --- .../targets/setup_postgresql_db/tasks/main.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/integration/targets/setup_postgresql_db/tasks/main.yml b/test/integration/targets/setup_postgresql_db/tasks/main.yml index 25b7b4bccda..6893e3a4269 100644 --- a/test/integration/targets/setup_postgresql_db/tasks/main.yml +++ b/test/integration/targets/setup_postgresql_db/tasks/main.yml @@ -107,11 +107,14 @@ # instLangs parameter). - block: - - name: Install langpacks (rhel8 beta) + - name: Install langpacks (RHEL8) yum: - name: glibc-all-langpacks + name: + - glibc-langpack-es + - glibc-langpack-pt + - glibc-all-langpacks state: present - when: ansible_distribution_major_version|int >= 8 + when: ansible_distribution_major_version is version('8', '>=') - name: Check if locales need to be generated (RedHat) shell: "localedef --list-archive | grep -a -q '^{{ locale }}$'" @@ -136,7 +139,7 @@ with_items: - glibc-langpack-es - glibc-langpack-pt - when: ansible_distribution == 'Fedora' and ansible_distribution_major_version|int >= 24 + when: ansible_distribution == 'Fedora' and ansible_distribution_major_version is version('24', '>=') - name: enable postgresql service (FreeBSD) lineinfile: