From 3387c2fdcbe74be6767c5abce5beb9e7df2d3f5b Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Sun, 19 Nov 2017 03:15:26 +0100 Subject: space_server: generate DNS, mDNS and dhcp entries ..from the same variables --- roles/space_server/tasks/avahi.yml | 7 +++++++ roles/space_server/tasks/dhcpd.yml | 4 ++-- roles/space_server/tasks/unbound.yml | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) (limited to 'roles/space_server/tasks') diff --git a/roles/space_server/tasks/avahi.yml b/roles/space_server/tasks/avahi.yml index ebf21ef..db8a5ee 100644 --- a/roles/space_server/tasks/avahi.yml +++ b/roles/space_server/tasks/avahi.yml @@ -80,6 +80,13 @@ notify: - restart avahi-daemon +- name: Configure hosts + template: + src: avahi/hosts.j2 + dest: '/etc/avahi/hosts' + notify: + - restart avahi-daemon + - name: Enable avahi-daemon service systemd: name: avahi-daemon.service diff --git a/roles/space_server/tasks/dhcpd.yml b/roles/space_server/tasks/dhcpd.yml index c72fa75..a15ce49 100644 --- a/roles/space_server/tasks/dhcpd.yml +++ b/roles/space_server/tasks/dhcpd.yml @@ -9,8 +9,8 @@ - packages - name: Configure dhcpd - copy: - src: dhcpd/dhcpd.conf + template: + src: dhcpd/dhcpd.conf.j2 dest: '/etc/dhcp/dhcpd.conf' notify: - restart dhcpd diff --git a/roles/space_server/tasks/unbound.yml b/roles/space_server/tasks/unbound.yml index 42db916..a9c4610 100644 --- a/roles/space_server/tasks/unbound.yml +++ b/roles/space_server/tasks/unbound.yml @@ -9,8 +9,8 @@ - packages - name: Configure unbound - copy: - src: unbound/unbound.conf + template: + src: unbound/unbound.conf.j2 dest: '/etc/unbound/unbound.conf' notify: - restart unbound -- cgit v1.2.1