aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2017-11-20 21:06:47 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2017-11-20 21:06:55 +0100
commit1b1d931fe4656cccbcf621913ce3b09a0d89280a (patch)
tree27e4523b8ced413606aae83916b2c02dcad17b67 /roles/space_server/tasks
parentfbdea6d790ced4075195cdd663ac420a7dc5857b (diff)
downloadlabitat-ansible-1b1d931fe4656cccbcf621913ce3b09a0d89280a.tar.gz
labitat-ansible-1b1d931fe4656cccbcf621913ce3b09a0d89280a.tar.xz
labitat-ansible-1b1d931fe4656cccbcf621913ce3b09a0d89280a.zip
space_server: networkd: use drop-in file for wait-online
The trick to overwriting the ExecStart option is to clear it first with ExecStart=
Diffstat (limited to 'roles/space_server/tasks')
-rw-r--r--roles/space_server/tasks/networkd.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/roles/space_server/tasks/networkd.yml b/roles/space_server/tasks/networkd.yml
index ef97844..ecd5d52 100644
--- a/roles/space_server/tasks/networkd.yml
+++ b/roles/space_server/tasks/networkd.yml
@@ -25,12 +25,14 @@
notify:
- restart networkd
-# Unfortunately a drop-in file doesn't seem to work,
-# so overwrite the whole service file :/
+- name: Create systemd-networkd-wait-online drop-in directory
+ file:
+ dest: '/etc/systemd/system/systemd-networkd-wait-online.service.d'
+ state: directory
- name: Don't wait for lan and mgt interfaces to come online
copy:
- src: networkd/systemd-networkd-wait-online.service
- dest: '/etc/systemd/system/systemd-networkd-wait-online.service'
+ src: networkd/no-lan-mgt.conf
+ dest: '/etc/systemd/system/systemd-networkd-wait-online.service.d/no-lan-mgt.conf'
- name: Enable systemd-networkd
systemd: