infra-role-github-webhook/tasks/consul.yml

17 lines
687 B
YAML

---
- name: Create Consul service definition
include_role: name=consul-service
vars:
consul_config_name: '{{ github_webhook_service_name }}'
consul_services:
- name: '{{ github_webhook_service_name }}'
id: '{{ github_webhook_service_name }}'
port: '{{ github_webhook_port }}'
address: '{{ ansible_local.wireguard.vpn_ip }}'
tags: ['{{ github_webhook_service_user }}', 'github', 'webhook']
checks:
- id: '{{ github_webhook_service_name }}-health'
name: ' {{ github_webhook_service_user }} GitHub Webhook check'
type: 'http'
http: 'http://localhost:{{ github_webhook_port }}/health'