Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

community.postgresql.postgresql_info is showing the namespaces of "db" variable for every database #172

Closed
marcosdiez opened this issue Dec 15, 2021 · 0 comments · Fixed by #173

Comments

@marcosdiez
Copy link
Contributor

SUMMARY

let's say I have :

  • db1, with namespaces ns1A and ns1B
  • db2 with namespaces ns2A and ns2B

whenever I use


  - community.postgresql.postgresql_info:
      login_host: 127.0.0.1
      login_user: root
      login_password: super_secret_password
      db: "db1"
    register: db_info

  - debug:
      msg: "{{ db_info }}"

it will print ns1A and ns1B both as the namespaces of both db1 and db2.
Not only that, ns2A and ns2B won't be returned at all.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

community.postgresql.postgresql_info

ANSIBLE VERSION

ansible 2.9.6
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/mdiez/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.8.10 (default, Sep 28 2021, 16:10:42) [GCC 9.3.0]


COLLECTION VERSION

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant