From: Guillaume Abrioux Date: Wed, 15 Jun 2022 08:46:52 +0000 (+0200) Subject: backup-and-restore: fix a typo X-Git-Tag: v6.0.27.3~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4d0953aedd4af400a3c5b9a162838dcffda87848;p=ceph-ansible.git backup-and-restore: fix a typo Typo introduced during initial implementation. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2051640 Signed-off-by: Guillaume Abrioux (cherry picked from commit e28c486e528517439997583bcb0faa3df16ab848) --- diff --git a/infrastructure-playbooks/backup-and-restore-ceph-files.yml b/infrastructure-playbooks/backup-and-restore-ceph-files.yml index f5574a375..93f8143be 100644 --- a/infrastructure-playbooks/backup-and-restore-ceph-files.yml +++ b/infrastructure-playbooks/backup-and-restore-ceph-files.yml @@ -83,14 +83,14 @@ - name: get a list of files to be restored find: paths: - - "{{ backup_dir }}/{{ hostvars[_node]['ansible_facts']['hostname'] }}" + - "{{ backup_dir }}/{{ hostvars[target_node]['ansible_facts']['hostname'] }}" recurse: yes register: file_to_restore - name: restore files copy: src: "{{ item.path }}" - dest: "{{ item.path | replace(backup_dir + '/' + hostvars[_node]['ansible_facts']['hostname'], '') }}" + dest: "{{ item.path | replace(backup_dir + '/' + hostvars[target_node]['ansible_facts']['hostname'], '') }}" mode: preserve loop: "{{ file_to_restore.files }}" delegate_to: "{{ target_node }}" \ No newline at end of file