You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hetzner-ansible/group_vars/all/database.yml

19 lines
560 B
YAML

---
shared_service_maria_primary: "{{ stage }}-maria-01"
shared_service_postgres_primary: "{{ stage }}-postgres-01"
shared_service_postgres_secondary: "{{ stage }}-postgres-02"
shared_service_pg_master_ip: "{{ stage_server_infos
| selectattr('name', 'match', shared_service_postgres_primary )
| map(attribute='private_ip')
| list
| first
| default('-') }}"
shared_service_pg_slave_ip: "{{ stage_server_infos
| selectattr('name', 'match', shared_service_postgres_secondary )
| map(attribute='private_ip')
| list
| first
| default('-') }}"