Commit 826883b1 authored by ale's avatar ale
Browse files

Ignore errors when disabling non-existing systemd restore units

parent 712b8158
Pipeline #18435 failed with stages
in 4 minutes and 29 seconds
......@@ -94,10 +94,12 @@
daemon_reload: yes
when: dataset_should_restore
# systemd disable is not idempotent, hence the ignore_errors.
- name: Disable restore service unit
name: "restore-{{ dataset_filename }}.service"
enabled: no
ignore_errors: true
when: not dataset_should_restore
- name: Cleanup restore service unit
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