mirror of
https://github.com/matter-labs/ansible-en-role.git
synced 2025-12-06 10:59:56 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 10ea272736 | |||
| 3fa5c8622b | |||
| 64198202a5 | |||
| 0d1717f38a |
@ -36,7 +36,7 @@
|
|||||||
when: enable_postgres_replication
|
when: enable_postgres_replication
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- required_var != ""
|
- postgress_replication_required_var != ""
|
||||||
fail_msg: "{{ postgress_replication_required_var }} needs to be set for the role for postgres replication to work"
|
fail_msg: "{{ postgress_replication_required_var }} needs to be set for the role for postgres replication to work"
|
||||||
success_msg: "Required variable for postgres replication {{ postgress_replication_required_var }} isn't empty"
|
success_msg: "Required variable for postgres replication {{ postgress_replication_required_var }} isn't empty"
|
||||||
loop_control:
|
loop_control:
|
||||||
|
|||||||
@ -47,7 +47,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
POSTGRES_HOST_AUTH_METHOD: "host replication replicator {{ postgres_replica_address }}/32 md5"
|
POSTGRES_HOST_AUTH_METHOD: "host replication replicator {{ postgres_replica_address }}/32 md5"
|
||||||
ports:
|
ports:
|
||||||
- "{{ postgres_replication_interface }}:5432:5432"
|
- "{{ postgres_replication_bind_address }}:5432:5432"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
command:
|
command:
|
||||||
- postgres
|
- postgres
|
||||||
|
|||||||
Reference in New Issue
Block a user