Skip to content

Commit

Permalink
Update faq.rst
Browse files Browse the repository at this point in the history
Using `backup_file` gives error as the filename is now changed to `backup` in newer Ansible versions.

Please update.
  • Loading branch information
tdram authored Dec 3, 2024
1 parent 186f2d7 commit 5fee43e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docsite/rst/reference_appendices/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -866,12 +866,12 @@ and backups, which most file based modules also support:
copy:
remote_src: true
dest: /x/y/z
src: "{{ updated['backup_file'] }}"
src: "{{ updated['backup'] }}"
when: updated is changed
always:
- name: We choose to always delete backup, but could copy or move, or only delete in rescue.
file:
path: "{{ updated['backup_file'] }}"
path: "{{ updated['backup'] }}"
state: absent
when: updated is changed
Expand Down

0 comments on commit 5fee43e

Please sign in to comment.