From: Guillaume Abrioux Date: Wed, 29 Jun 2022 06:40:13 +0000 (+0200) Subject: backup-and-restore: fix check on 'mode' variable X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9965bf6cd6f2692cecdc3cee14132a2f4667ebe5;p=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 (cherry picked from commit 848dd03fa66c0febaf1ed081d4986d5de8472a09) --- diff --git a/infrastructure-playbooks/backup-and-restore-ceph-files.yml b/infrastructure-playbooks/backup-and-restore-ceph-files.yml index 93f8143be..a01d0e88a 100644 --- a/infrastructure-playbooks/backup-and-restore-ceph-files.yml +++ b/infrastructure-playbooks/backup-and-restore-ceph-files.yml @@ -42,7 +42,7 @@ "you must pass the mode: -e mode=" when: - mode is not defined - - mode not in ['backup', 'restore'] + or mode not in ['backup', 'restore'] - name: gather facts on source node setup: