From 0141bce9ee2776d96e89679152f077fd6bc121e9 Mon Sep 17 00:00:00 2001 From: Tobias Petrich Date: Sat, 24 Aug 2024 18:53:04 +0200 Subject: [PATCH] add wait for network --- ansible/my_service_templates/actual/actual.container | 2 ++ ansible/my_service_templates/bitwarden/bitwarden.container | 2 ++ ansible/my_service_templates/gitea/gitea.pod | 2 ++ ansible/my_service_templates/mumble/mumble.container | 2 ++ ansible/my_service_templates/nextcloud/nextcloud.pod | 2 ++ 5 files changed, 10 insertions(+) diff --git a/ansible/my_service_templates/actual/actual.container b/ansible/my_service_templates/actual/actual.container index dbaf356..3f8c2c3 100644 --- a/ansible/my_service_templates/actual/actual.container +++ b/ansible/my_service_templates/actual/actual.container @@ -1,5 +1,7 @@ [Unit] Description=Actual deployment +Wants=network-online.target +After=network.target network-online.target [Container] ContainerName=actual diff --git a/ansible/my_service_templates/bitwarden/bitwarden.container b/ansible/my_service_templates/bitwarden/bitwarden.container index d0918b8..7be0a02 100644 --- a/ansible/my_service_templates/bitwarden/bitwarden.container +++ b/ansible/my_service_templates/bitwarden/bitwarden.container @@ -1,5 +1,7 @@ [Unit] Description=Bitwarden deployment +Wants=network-online.target +After=network.target network-online.target [Container] ContainerName=bitwarden diff --git a/ansible/my_service_templates/gitea/gitea.pod b/ansible/my_service_templates/gitea/gitea.pod index fd54a55..d199361 100644 --- a/ansible/my_service_templates/gitea/gitea.pod +++ b/ansible/my_service_templates/gitea/gitea.pod @@ -1,5 +1,7 @@ [Unit] Description=Gitea deployment +Wants=network-online.target +After=network.target network-online.target [Pod] PodName=gitea diff --git a/ansible/my_service_templates/mumble/mumble.container b/ansible/my_service_templates/mumble/mumble.container index 0fb85f0..2be88cb 100644 --- a/ansible/my_service_templates/mumble/mumble.container +++ b/ansible/my_service_templates/mumble/mumble.container @@ -1,5 +1,7 @@ [Unit] Description=Mumble deployment +Wants=network-online.target +After=network.target network-online.target [Container] ContainerName=mumble diff --git a/ansible/my_service_templates/nextcloud/nextcloud.pod b/ansible/my_service_templates/nextcloud/nextcloud.pod index 3457c85..6019ca5 100644 --- a/ansible/my_service_templates/nextcloud/nextcloud.pod +++ b/ansible/my_service_templates/nextcloud/nextcloud.pod @@ -1,5 +1,7 @@ [Unit] Description=Nextcloud deployment +Wants=network-online.target +After=network.target network-online.target [Pod] PodName=nextcloud