Skip to content
Snippets Groups Projects
Commit ae90ec5a authored by Felix Schäfer's avatar Felix Schäfer :construction_worker:
Browse files

Make postgresql cluster aware

parent 71711432
No related branches found
No related tags found
No related merge requests found
Pipeline #181677 passed
---
# defaults file for limesurvey
limesurvey_pgdb_port: 5432
......@@ -6,7 +6,7 @@
db_user:
name: "{{ limesurvey_pgdb_user }}"
password: "{{ limesurvey_pgdb_pass }}"
db_host: "{{ limesurvey_pgdb_host }}"
postgres_on_cluster: true
- name: Create limesurvey directory
ansible.builtin.file:
......
DB_TYPE=pgsql
DB_HOST={{ hostvars[limesurvey_pgdb_host]['ansible_default_ipv4']['address'] }}
DB_PORT=5432
DB_HOST={{ hostvars[limesurvey_pgdb_host]['ansible_default_ipv4']['address'] | default(limesurvey_pgdb_host) }}
DB_PORT={{ limesurvey_pgdb_port }}
DB_NAME={{ limesurvey_pgdb_user }}
DB_USERNAME={{ limesurvey_pgdb_user }}
DB_PASSWORD={{ limesurvey_pgdb_pass }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment