unbound: Fails to start because systemd-resolved is already running #1778
Labels
bug
something is not working as expected
priority: medium
tag: DNS
tag: good first issue
work suitable for new contributors
Milestone
Running the role
debops.unbound
on an Ubuntu 20.04 fails during the handler:And indeed, Unbound can't bind on ports UDP/TCP 53 because
systemd-resolve
is still running:Does I do something wrong? Or does the role should include some way to check port availability, and if they aren't, first stop and disable running process using these ports?
Adding tasks to stop and disable systemd-resolved in a
pre_tasks
section in the playbook is not a good solution because between the execution of these tasks and the role's, the host would fail DNS resolution, which could have dangerous consequences.PS: Of course, manually stopping and disabling systemd-resolved works:
The text was updated successfully, but these errors were encountered: