diff --git a/infrastructure-playbooks/backup-and-restore-ceph-files.yml b/infrastructure-playbooks/backup-and-restore-ceph-files.yml index a01d0e88a..2913310ce 100644 --- a/infrastructure-playbooks/backup-and-restore-ceph-files.yml +++ b/infrastructure-playbooks/backup-and-restore-ceph-files.yml @@ -28,7 +28,9 @@ msg: > "You must pass the node name: -e target_node=. The name must match what is set in your inventory." - when: target_node is not defined + when: + - target_node is not defined + or target_node not in groups.get('all', []) - name: exit playbook, if user did not set the backup directory fail: