Commit 14f2a83a authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Merge branch 'borg_backup_upgrade_cancel' into 'master'

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

See merge request !518
parents 9e7441ef 3d079f79
Pipeline #14280 passed with stage
in 39 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
......
Supports Markdown
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