diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-01-17 23:12:59 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-01-17 23:12:59 +0100 |
commit | 8fe50704a612c445641a004917b1e5ea01e68cbe (patch) | |
tree | 624d090d2124b7eafb9a1e74c4824718cb65795f /ansible/roles/borg-client | |
parent | 6c9bf1082dd48206a2222fa3a0ac0c635a0960e3 (diff) | |
download | infra-8fe50704a612c445641a004917b1e5ea01e68cbe.tar.gz infra-8fe50704a612c445641a004917b1e5ea01e68cbe.tar.bz2 infra-8fe50704a612c445641a004917b1e5ea01e68cbe.tar.xz infra-8fe50704a612c445641a004917b1e5ea01e68cbe.zip |
o Wait until the network is online before running backup.
Diffstat (limited to 'ansible/roles/borg-client')
-rw-r--r-- | ansible/roles/borg-client/tasks/borg-client.yml | 2 |
1 files changed, 2 insertions, 0 deletions
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 |