]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
backup-and-restore: fix check on 'target_node' variable v6.0.27.4
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:50 +0000 (09:09 +0200)
commit05aaab03626be131342442287d1bd5e9a2824b5f
treebd9994e5d1aa591d1c1f4bd8d672d8b1684394b8
parent1d5cf7fa205b49bb917bc456d4f93a476b9cbac7
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)
(cherry picked from commit f28002713f43ba030a47306d6d2a81f5a0e81494)
infrastructure-playbooks/backup-and-restore-ceph-files.yml