You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The readme does not mention ubuntu being supported but the ansible tasks are OS-generic so theoretically ubuntu should work fine. Is there some reason ubuntu doesn't work with this playbook?
The text was updated successfully, but these errors were encountered:
I've used the role with Ubuntu 20.04 with some modification. The problem I ran into was that systemd-resolved.service was bound to port 53 natively so when you run this role against an Ubuntu machine you will run into the error that dnsmasq failed to start. Since there is already a DNS server service running on Ubuntu you will have to make the choice to use it or dnsmasq. I was made to use it for an assignment so created my own playbook and also used bertvv's role. Both worked well but bertvv automates a lot of the configuration files nicely so it was very useful.
The modification I made was to the ~/.ansible/roles/ansible-dnsmasq/tasks/main.yml file. (Where I cloned the ansible-dnsmasq role so that Ansible finds it.)
In the playbook you'll add 3 tasks:
One to make sure that systemd-resolved.service is running before the install of dnsmasq. If not you may get an error that the resolve-file "resolv.conf" is not found.
Then, after dnsmasq is installed by the bertvv version of the playbook you are going to stop the sytemd-resolved.service.
Finally, you are going to restart the dnsmasq service. bertvv provided a task to make sure the service is started and I simply modified it to restart so that it picks up the configuration changes and rewrites the DNS configuration files accordingly.
The readme does not mention ubuntu being supported but the ansible tasks are OS-generic so theoretically ubuntu should work fine. Is there some reason ubuntu doesn't work with this playbook?
The text was updated successfully, but these errors were encountered: