From dd16f0218b864b8b995fc7341f98c7a80927831e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 3 Apr 2022 15:13:11 +0200 Subject: [PATCH] fix dependencies --- tasks/prepare.yml | 3 +++ tasks/prepare_redhat_7.yml | 3 +-- tasks/prepare_redhat_8.yml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tasks/prepare.yml b/tasks/prepare.yml index ef726dd..3cfa149 100644 --- a/tasks/prepare.yml +++ b/tasks/prepare.yml @@ -8,3 +8,6 @@ gpgcheck: yes enabled: yes gpgkey: "https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-{{ __postgres_version }}" + become: True + become_user: root + when: postgres_repository_enabled | bool diff --git a/tasks/prepare_redhat_7.yml b/tasks/prepare_redhat_7.yml index e9c19b0..3fd9e96 100644 --- a/tasks/prepare_redhat_7.yml +++ b/tasks/prepare_redhat_7.yml @@ -4,7 +4,6 @@ name: "{{ item }}" state: present loop: - - python2-psycopg2 + - python-psycopg2 become: True become_user: root - when: postgres_repository_enabled | bool diff --git a/tasks/prepare_redhat_8.yml b/tasks/prepare_redhat_8.yml index a1b80e0..df3563e 100644 --- a/tasks/prepare_redhat_8.yml +++ b/tasks/prepare_redhat_8.yml @@ -12,6 +12,7 @@ mode: 0644 owner: root group: root + when: postgres_repository_enabled | bool - name: Install rh8 dependencies package: @@ -21,4 +22,3 @@ - python3-psycopg2 become: True become_user: root - when: postgres_repository_enabled | bool