From b35ef471a50cd776ef814b568bbadb9f636e9b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=C4=9Bzslav=20Dvo=C5=99=C3=A1k?= Date: Thu, 26 Sep 2024 01:33:33 +0200 Subject: [PATCH 1/2] The community.general.postgresql_user from community.postgresql used now --- meta/main.yml | 3 ++- tasks/users.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index e10e7122..56330b72 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,5 +1,6 @@ --- -dependencies: [] +dependencies: + - role: community.postgresql galaxy_info: role_name: postgresql diff --git a/tasks/users.yml b/tasks/users.yml index 6cbae015..08b5c8b6 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -1,6 +1,6 @@ --- - name: Ensure PostgreSQL users are present. - postgresql_user: + community.general.postgresql_user: name: "{{ item.name }}" password: "{{ item.password | default(omit) }}" login_host: "{{ item.login_host | default('localhost') }}" From 0911f75ef42c8ab58a2898e485f6b73a52fd38a5 Mon Sep 17 00:00:00 2001 From: Cybervitexus Date: Fri, 11 Oct 2024 04:21:47 +0200 Subject: [PATCH 2/2] be sure community.postgresql is availble ansible-galaxy collection install community.postgresql added --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77cbf3de..b2781c97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,6 +62,8 @@ jobs: - name: Install test dependencies. run: pip3 install ansible molecule molecule-plugins[docker] docker + - name: Install community.postgresql + run: ansible-galaxy collection install community.postgresql - name: Run Molecule tests. run: molecule test