Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Postgres role loads data into postgres database #29

Closed
lenards opened this issue Apr 13, 2016 · 1 comment
Closed

Postgres role loads data into postgres database #29

lenards opened this issue Apr 13, 2016 · 1 comment
Assignees
Labels

Comments

@lenards
Copy link
Contributor

lenards commented Apr 13, 2016

Right now, the task that uses psql just uses -f without indicating the target database. This means the default database for the user is the target (and, for postgres user that is postgres database).

- name: run troposphere sql script for postgresql
  become: yes
  become_user: postgres
  command: psql -f {{ POSTGRES_SQL_INSTALL_DIRECTORY }}/{{ TROPOSPHERE_DATABASE_FILE_TO_BE_LOADED | basename }}
  when: LOAD_TROPOSPHERE_DATABASE
  register: output

source: troposphere-setup-troposphere/tasks/main.yml

ℹ️ This will be corrected in a forthcoming pull request that I am authoring.

@lenards lenards self-assigned this Apr 13, 2016
@lenards lenards added the bug label Apr 13, 2016
@lenards
Copy link
Contributor Author

lenards commented Apr 22, 2016

This is fixed with #30 & #31 (plus some commits I made to master tonight).

@lenards lenards closed this as completed Apr 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant