We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
postgresql_ext
psql
Ansible has a native module to handle PostgreSQL extensions called postgresql_ext:
http://docs.ansible.com/ansible/latest/postgresql_ext_module.html
We should use that, instead of calling shell, which then calls psql.
shell
The text was updated successfully, but these errors were encountered:
I tested this on the normal extensions part, and it seems to work:
- name: PostgreSQL | Add extensions to the databases postgresql_ext: db: "{{ item.0.db }}" login_user: "{{ postgresql_service_user }}" port: "{{ postgresql_port }}" name: "{{ item.1 }}" with_subelements: - "{{ postgresql_database_extensions }}" - extensions register: result
Who can test it for the rest of the cases (hstore,postgis, etc.)
Sorry, something went wrong.
What's the status of this?
This should be closed, as it was fixed in #307.
No branches or pull requests
Ansible has a native module to handle PostgreSQL extensions called
postgresql_ext
:http://docs.ansible.com/ansible/latest/postgresql_ext_module.html
We should use that, instead of calling
shell
, which then callspsql
.The text was updated successfully, but these errors were encountered: