diff --git a/lab/setup-dns-server.yml b/lab/setup-dns-server.yml deleted file mode 100644 index a0a9906..0000000 --- a/lab/setup-dns-server.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- hosts: lab - remote_user: cluster-master - tasks: - - name: Setup DNS MASQ - become: yes - import_tasks: tasks/install-dnsmasq.yml - diff --git a/lab/tasks/install-dnsmasq.yml b/lab/tasks/install-dnsmasq.yml index 1569ebe..cd0910d 100644 --- a/lab/tasks/install-dnsmasq.yml +++ b/lab/tasks/install-dnsmasq.yml @@ -1,7 +1,7 @@ +# Do not run this anymore cuz dns masq breaks too much shit at once - name: Install dnsmasq apt: name: dnsmasq - update_cache: yes - name: Ensure config ready for local network use lineinfile: path: /etc/dnsmasq.conf @@ -13,6 +13,9 @@ - "cache-size=1000" - "server=208.67.222.222" - "server=208.67.220.220" + - "domain=cluster.lan" + - "expand-hosts" + - "listen-address=127.0.0.1,192.168.1.100" - name: Add entries to the /etc/hosts file lineinfile: path: /etc/hosts