We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03b2063 commit ef440e6Copy full SHA for ef440e6
scripts/playbooks/deploy-servers.yml
@@ -4,6 +4,10 @@
4
prompt: "Instance name of the webserver"
5
default: patchew-server
6
private: no
7
+ - name: db_host
8
+ prompt: "Host for PostgreSQL database (empty = SQLite)"
9
+ default: ""
10
+ private: no
11
- name: superuser_name
12
prompt: "Admin account to create (optional)"
13
default: ""
@@ -16,7 +20,8 @@
16
20
base_dir: "/data/{{ instance_name }}"
17
21
src_dir: "{{ base_dir }}/src"
18
22
data_dir: "{{ base_dir }}/data"
19
- docker_run_args: "--link {{ instance_name }}-db:patchew-db"
23
+ db_arg: "{{ '-e PATCHEW_DB_PORT_5432_TCP_ADDR=' if db_host != '' else '' }}{{ db_host }}"
24
+ docker_run_args: "--link {{ instance_name }}-db:patchew-db {{db_arg}}"
25
tasks:
26
- name: Create data dir
27
file:
0 commit comments