Skip to content

Commit

Permalink
Add comments to postgresql role with link to pulibrary version
Browse files Browse the repository at this point in the history
  • Loading branch information
thatbudakguy committed Dec 14, 2020
1 parent 93ee485 commit 8c9200c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions roles/postgresql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Role Name

Connects to a remote postgres server and uses provided admin credentials to create a new database and user account for a given application.

Based on [the `postgresql` role from `pulibrary/princeton_ansible`](https://github.com/pulibrary/princeton_ansible/tree/main/roles/postgresql).

Variables
---------

Expand Down
3 changes: 3 additions & 0 deletions roles/postgresql/tasks/create_db.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
# Based on:
# https://github.com/pulibrary/princeton_ansible/blob/main/roles/postgresql/tasks/create_db.yml

- name: ensure postgres database for app exists
postgresql_db:
name: "{{ application_db_name }}"
Expand Down
3 changes: 3 additions & 0 deletions roles/postgresql/tasks/create_user.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
# Based on:
# https://github.com/pulibrary/princeton_ansible/blob/main/roles/postgresql/tasks/create_users.yml

- name: ensure postgres user account for app exists
postgresql_user:
name: "{{ application_dbuser_name }}"
Expand Down
4 changes: 3 additions & 1 deletion roles/postgresql/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
# tasks file for postgresql
# Based on:
# https://github.com/pulibrary/princeton_ansible/blob/main/roles/postgresql/tasks/main.yml

- name: make sure the CA certificates are available
become: true
apt:
Expand Down

0 comments on commit 8c9200c

Please sign in to comment.