From 8fe50704a612c445641a004917b1e5ea01e68cbe Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 17 Jan 2019 23:12:59 +0100 Subject: o Wait until the network is online before running backup. --- ansible/roles/borg-client/tasks/borg-client.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ansible/roles/borg-client') diff --git a/ansible/roles/borg-client/tasks/borg-client.yml b/ansible/roles/borg-client/tasks/borg-client.yml index 97c4ec4..3d2d74a 100644 --- a/ansible/roles/borg-client/tasks/borg-client.yml +++ b/ansible/roles/borg-client/tasks/borg-client.yml @@ -85,6 +85,8 @@ ExecStart=-/usr/local/bin/create-backup ExecStartPost=-/usr/local/bin/create-backup-send-email root@trygvis.io SuccessExitStatus=0 1 + After=network-online.target + Wants=network-online.target notify: - systemd daemon-reload -- cgit v1.2.3