Skip to content

Commit 4ae5972

Browse files
authored
Start dnscrypt-proxy after systemd-resolved (#1357)
1 parent 3428c51 commit 4ae5972

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

roles/dns_encryption/tasks/ubuntu.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,14 @@
4747
owner: root
4848
group: root
4949

50-
- name: Ubuntu | Add capabilities to bind ports
50+
- name: Ubuntu | Add custom requirements to successfully start the unit
5151
copy:
52-
dest: /etc/systemd/system/dnscrypt-proxy.service.d/99-capabilities.conf
52+
dest: /etc/systemd/system/dnscrypt-proxy.service.d/99-algo.conf
5353
content: |
54+
[Unit]
55+
After=systemd-resolved.service
56+
Requires=systemd-resolved.service
57+
5458
[Service]
5559
AmbientCapabilities=CAP_NET_BIND_SERVICE
5660
notify:

0 commit comments

Comments
 (0)