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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user