diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77cbf3d..b2781c9 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 diff --git a/meta/main.yml b/meta/main.yml index e10e712..56330b7 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 6cbae01..08b5c8b 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') }}"