-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
In the current Devoplment Branch die we have to fix the existing example for ng_backup_rotate.yml
The playbook executes but fetches the file to the wrong location, as it is not using the correct variable, but uses /tmp/
Task with issue
- name: Fetch Backup file to Control Node
ansible.builtin.fetch:
# Source path on the remote host
src: "/backup/{{ nodegrid_backup.backup_filename }}"
# Destination directory on the local (control) machine
dest: "/tmp/{{ inventory_hostname }}/{{ nodegrid_backup.backup_filename }}"
# Optional parameter to save the file directly to the dest path without creating a hostname/path structure
flat: yes
Correct version
- name: Fetch Backup file to Control Node
ansible.builtin.fetch:
# Source path on the remote host
src: "/backup/{{ nodegrid_backup.backup_filename }}"
# Destination directory on the local (control) machine
dest: "/{{backup_files_directory}}/{{ inventory_hostname }}/{{ nodegrid_backup.backup_filename }}"
# Optional parameter to save the file directly to the dest path without creating a hostname/path structure
flat: yes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels