From cfb71145971335dd425de436d19ff07fdacbc8bd Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 2 May 2024 22:49:09 -0700 Subject: [PATCH] Removing dns masq since it breaks the hecc out of the dns resolution and k8s --- lab/setup-dns-server.yml | 8 -------- lab/tasks/install-dnsmasq.yml | 5 ++++- 2 files changed, 4 insertions(+), 9 deletions(-) delete mode 100644 lab/setup-dns-server.yml 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