]> git-server-git.apps.pok.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:09:06 +0000 (09:09 +0200)
commit220a4a1369a4bae13579c527e2eb9e9ef55debe1
tree70c2ac491668b781020c97d164602c66e313ba24
parent9965bf6cd6f2692cecdc3cee14132a2f4667ebe5
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>
(cherry picked from commit b18a1aa3cafa235dfa4f564d6574318ee539f961)
infrastructure-playbooks/backup-and-restore-ceph-files.yml