mirror of https://github.com/ceph/ceph-ansible.git
backup-and-restore: fix check on 'mode' variable
Typical failure:
```
fatal: [localhost]: FAILED! =>
msg: |-
The conditional check 'mode not in ['backup', 'restore']' failed. The error was: error while evaluating conditional (mode not in ['backup', 'restore']): 'mode' is undefined
```
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2051640
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 848dd03fa6
)
pull/7222/head
parent
4156fd569f
commit
9965bf6cd6
|
@ -42,7 +42,7 @@
|
||||||
"you must pass the mode: -e mode=<backup|restore>"
|
"you must pass the mode: -e mode=<backup|restore>"
|
||||||
when:
|
when:
|
||||||
- mode is not defined
|
- mode is not defined
|
||||||
- mode not in ['backup', 'restore']
|
or mode not in ['backup', 'restore']
|
||||||
|
|
||||||
- name: gather facts on source node
|
- name: gather facts on source node
|
||||||
setup:
|
setup:
|
||||||
|
|
Loading…
Reference in New Issue