Verified Commit 3d079f79 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

tasks: skip reboot when borg-backup{,-offsite} is running

parent 9e7441ef
Pipeline #14270 passed with stage
in 36 seconds
......@@ -24,6 +24,19 @@
when: pgrep is succeeded
when: "'buildservers' in group_names"
- name: check for active borg backup jobs
block:
- name: get service facts
service_facts:
- name: abort reboot when borg backup is running
meta: end_host
when: >
ansible_facts.services["borg-backup.service"]["state"] == "running" or
ansible_facts.services["borg-backup-offsite.service"]["state"] == "running"
when: "'borg_clients' in group_names"
- name: gemini pre-reboot checks
block:
- name: wait for svntogit to finish
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment