aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2017-11-19 03:15:26 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2017-11-19 12:46:35 +0100
commit3387c2fdcbe74be6767c5abce5beb9e7df2d3f5b (patch)
tree6263912c4754a73d13670605d9168267fa19d007 /roles/space_server/tasks
parent3b795796bd03488a385f3ad42b10b8c0d61282c1 (diff)
downloadlabitat-ansible-3387c2fdcbe74be6767c5abce5beb9e7df2d3f5b.tar.gz
labitat-ansible-3387c2fdcbe74be6767c5abce5beb9e7df2d3f5b.tar.xz
labitat-ansible-3387c2fdcbe74be6767c5abce5beb9e7df2d3f5b.zip
space_server: generate DNS, mDNS and dhcp entries
..from the same variables
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