rubyforgood/babywearing

View on GitHub
deploy/ansible/postgres-user/tasks/main.yml

Summary

Maintainability
Test Coverage
---
- name: Variables
  include_vars: "{{playbook_dir}}/postgres/vars/main.yml"

- name: Make database user for app
  postgresql_user:
    db: "{{postgres_db_name}}"
    login_host: "{{postgres_hostname}}"
    login_user: "{{postgres_admin_login}}@{{postgres_server_name}}"
    login_password: "{{postgres_admin_password}}"
    name: "{{postgres_app_user}}"
    password: "{{postgres_app_password}}"
    priv: "CONNECT/ALL"