]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
backup-and-restore: fix a typo
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 15 Jun 2022 08:46:52 +0000 (10:46 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 22 Jun 2022 05:17:32 +0000 (07:17 +0200)
Typo introduced during initial implementation.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2051640
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit e28c486e528517439997583bcb0faa3df16ab848)

infrastructure-playbooks/backup-and-restore-ceph-files.yml

index f5574a375ac7e5bb03d28be622ba7e2136f951d0..93f8143bef74abf005745d78c5ad4a3d7c26ae00 100644 (file)
         - 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