aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/consul/handlers/main.yaml
blob: 338baea74e332ed2a4d42bd01db2fb171429bfbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
# file roles/consul/handlers/main.yaml

- name: Restart Nomad
  systemd:
    daemon_reload: true
    enabled: true
    name: "nomad"
    state: "{{ nomad_restart_handler_state }}"

- name: Restart Consul
  systemd:
    daemon_reload: true
    enabled: true
    name: "consul"
    state: "{{ consul_restart_handler_state }}"

- name: Stop Systemd-resolved
  systemd:
    daemon_reload: true
    enabled: false
    name: "systemd-resolved"
    state: "{{ systemd_resolved_state }}"