ansible-consul/handlers/main.yml
vincent 875cdad424 add systemd-resolved consul forwarding
add systemd-resolved consul redirection
2023-10-21 15:19:26 +02:00

17 lines
370 B
YAML

---
# handlers file for ansible-consul
- name: reload consul configuration on Linux
command: "consul reload"
listen: "reload consul configuration"
- name: restart dnsmasq
service:
name: dnsmasq
enabled: true
state: restarted
- name: restart systemd-resolved
ansible.builtin.service:
name: systemd-resolved
enabled: true
state: restarted