If a backup file is created using Copy (with backup=yes), for example, with this task:
- name: copy file copy: dest: path/to/dest src: