Skip to content

Commit

Permalink
backup-and-restore: fix a typo
Browse files Browse the repository at this point in the history
Typo introduced during initial implementation.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2051640

Signed-off-by: Guillaume Abrioux <[email protected]>
(cherry picked from commit e28c486)
  • Loading branch information
guits committed Jun 15, 2022
1 parent a01c890 commit c9a8102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infrastructure-playbooks/backup-and-restore-ceph-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

0 comments on commit c9a8102

Please sign in to comment.