aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2017-11-20 20:36:51 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2017-11-20 20:36:51 +0100
commit15192cfeae1ff05c888aa0dab6ac1236646dba14 (patch)
treee749a53b0cec4fccc8d8fed7b6f4e41fb9cf724c
parent7313d17088aef2afea3448e81ef6a68b9d45dcab (diff)
downloadlabitat-ansible-15192cfeae1ff05c888aa0dab6ac1236646dba14.tar.gz
labitat-ansible-15192cfeae1ff05c888aa0dab6ac1236646dba14.tar.xz
labitat-ansible-15192cfeae1ff05c888aa0dab6ac1236646dba14.zip
space_server: radius: start radiusd we're online
-rw-r--r--roles/space_server/tasks/radius.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/space_server/tasks/radius.yml b/roles/space_server/tasks/radius.yml
index 9d494b3..b480d3f 100644
--- a/roles/space_server/tasks/radius.yml
+++ b/roles/space_server/tasks/radius.yml
@@ -96,6 +96,15 @@
creates: '/etc/systemd/system/timers.target.wants/getusers.timer'
when: "'container' in ansible_env"
+- name: Create service drop-in directory
+ file:
+ dest: '/etc/systemd/system/radiusd.service.d'
+ state: directory
+- name: Start radiusd after networks are configured
+ copy:
+ src: wait-online.conf
+ dest: '/etc/systemd/system/radiusd.service.d/wait-online.conf'
+
- name: Enable radiusd service
systemd:
name: radiusd.service