aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/space_server/tasks')
-rw-r--r--roles/space_server/tasks/avahi.yml7
-rw-r--r--roles/space_server/tasks/dhcpd.yml4
-rw-r--r--roles/space_server/tasks/unbound.yml4
3 files changed, 11 insertions, 4 deletions
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