diff --git a/tasks/prepare.yml b/tasks/prepare.yml index 9804bb4..e800f14 100644 --- a/tasks/prepare.yml +++ b/tasks/prepare.yml @@ -14,10 +14,11 @@ gpgkey: "https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-{{ __postgres_version }}" - name: Install python dependencies - pip: - name: - - psycopg2 + package: + name: "{{ item }}" state: present + whith_items: + - python-psycopg2 become: True become_user: root when: postgres_repository_enabled