---
- name: daemon-reload
  systemd:
    daemon_reload: true

- name: restart dnscrypt-proxy.socket
  systemd:
    name: dnscrypt-proxy.socket
    state: restarted
    daemon_reload: true
  when: uses_systemd_socket | bool

- name: restart dnscrypt-proxy
  systemd:
    name: dnscrypt-proxy
    state: restarted
    daemon_reload: true
  when: uses_systemd_socket | bool
