backup file name and path - Copy module

Hello All,

Sorry to ask a silly question.

I am using copy module. "backup: true:

Question-
Where is the backup file stored? default path?
what is the name of the file?
Any way to change the default backup path

Thanks in advance.

Hello All,

Sorry to ask a silly question.

I am using copy module. "backup: true:

Question-
Where is the backup file stored? default path?

It's stored in the same directory as the original file.

what is the name of the file?

It's using this name scheme: basename.PID.YYYY-MM-DD@HH:MM:SS~

The exact name is returned from the copy module in the return value[1] backup_file.

Any way to change the default backup path

For the copy module I don't think so.

[1] https://docs.ansible.com/ansible/latest/modules/copy_module.html#return-values