Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Modify postgres role to be more customizable #403

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions defaults/settings.yml.default
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ plex_auto_collections:
state: present
plex_meta_manager:
time: 03:00
postgres:
published_ports:
- 127.0.0.1:5432:5432
qbittorrentvpn:
vpn_endpoint: netherlands.ovpn
vpn_user: your_vpn_username
Expand Down
4 changes: 3 additions & 1 deletion roles/postgres/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@
PUID: "{{ uid }}"
PGID: "{{ gid }}"
LOG_LEVEL: DEBUG
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: "{{ postgres.user }}"
POSTGRES_PASSWORD: "{{ postgres.password }}"
volumes:
- /opt/postgres/data:/var/lib/postgresql/data
labels:
"com.github.cloudbox.cloudbox_managed": "true"
networks:
- name: cloudbox
published_ports: "{{ postgres.published_ports|default('127.0.0.1:5432:5432',true) }}"
purge_networks: yes
restart_policy: unless-stopped
state: started