diff --git a/roles/gitlab_runner/files/libvirt-executor-update-base-image.service b/roles/gitlab_runner/files/libvirt-executor-update-base-image.service
index 444012a013f30fe92e20da3a8542381d664e5988..b28f92fc30128aae1e57ab4772d43fddbf6e2b3a 100644
--- a/roles/gitlab_runner/files/libvirt-executor-update-base-image.service
+++ b/roles/gitlab_runner/files/libvirt-executor-update-base-image.service
@@ -1,5 +1,7 @@
 [Unit]
 Description=Update libvirt-executor base image
+Wants=network-online.target
+After=network-online.target nss-lookup.target
 
 [Service]
 Type=oneshot