2024-09-25 12:58:11 +00:00
|
|
|
---
|
|
|
|
- name: Create Consul service definition
|
2024-11-01 08:09:31 +00:00
|
|
|
include_role: name=infra-role-consul-service
|
2024-09-25 12:58:11 +00:00
|
|
|
vars:
|
|
|
|
consul_config_name: '{{ mediawiki_service_name }}'
|
|
|
|
consul_services:
|
|
|
|
- id: '{{ mediawiki_service_name }}'
|
|
|
|
name: '{{ mediawiki_service_name }}'
|
|
|
|
port: '{{ mediawiki_app_cont_port }}'
|
|
|
|
address: '{{ ansible_local.wireguard.address }}'
|
|
|
|
tags: ['ssl-proxy-backend', 'site', 'mediawiki']
|
|
|
|
meta:
|
|
|
|
proxy_fqdn: '{{ mediawiki_domain | mandatory }}'
|
|
|
|
checks:
|
|
|
|
- id: '{{ mediawiki_service_name }}-health'
|
|
|
|
name: 'MediaWiki Healthcheck'
|
|
|
|
type: 'http'
|
|
|
|
http: 'http://localhost:{{ mediawiki_app_cont_port }}/FAQ'
|