]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
backup-and-restore: fix check on 'target_node' variable
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 29 Jun 2022 06:59:55 +0000 (08:59 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 29 Jun 2022 07:05:19 +0000 (09:05 +0200)
commitb18a1aa3cafa235dfa4f564d6574318ee539f961
tree122bb2418126d382ddd199c59c625fde321c607c
parent848dd03fa66c0febaf1ed081d4986d5de8472a09
backup-and-restore: fix check on 'target_node' variable

If the user doesn't pass a valid name (present in the inventory)
the playbook will fail like following:

```
fatal: [localhost -> {{ target_node }}]: FAILED! =>
  msg: |-
    The task includes an option with an undefined variable. The error was: "hostvars['10.70.46.40']" is undefined
```

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2051640
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/backup-and-restore-ceph-files.yml