Do not try to reload mount on absent state

In case operator needs to rmeove the mount, we should not attempt to
reload the mount, but simply skip the task doing that.

Change-Id: I1dfe061915127bd7ade90b28fb0862783ba4820d
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
This commit is contained in:
Dmitriy Rabotyagov
2025-12-17 17:34:37 +01:00
parent 6022cb22be
commit d2ee139c7a
+1
View File
@@ -121,6 +121,7 @@
register: set_mount_state_command
when:
- item.state is defined
- item.state != 'absent'
- name: Set the state of the mount (fallback)
ansible.builtin.systemd: