mirror of https://github.com/ceph/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 <gabrioux@redhat.com>
(cherry picked from commit e28c486e52
)
pull/7216/head
parent
a67defec2f
commit
6615d97015
|
@ -83,14 +83,14 @@
|
||||||
- name: get a list of files to be restored
|
- name: get a list of files to be restored
|
||||||
find:
|
find:
|
||||||
paths:
|
paths:
|
||||||
- "{{ backup_dir }}/{{ hostvars[_node]['ansible_facts']['hostname'] }}"
|
- "{{ backup_dir }}/{{ hostvars[target_node]['ansible_facts']['hostname'] }}"
|
||||||
recurse: yes
|
recurse: yes
|
||||||
register: file_to_restore
|
register: file_to_restore
|
||||||
|
|
||||||
- name: restore files
|
- name: restore files
|
||||||
copy:
|
copy:
|
||||||
src: "{{ item.path }}"
|
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
|
mode: preserve
|
||||||
loop: "{{ file_to_restore.files }}"
|
loop: "{{ file_to_restore.files }}"
|
||||||
delegate_to: "{{ target_node }}"
|
delegate_to: "{{ target_node }}"
|
Loading…
Reference in New Issue