Maintain file timestamp during copy

I believe I indicated I was open to making it configurable, if it were
a global setting.

Send me a patch.

It needs to work for both paramiko and ssh connection types, as well
as ssh in scp and sftp modes.

I believe I indicated I was open to making it configurable, if it were
a global setting.

I am just curious, why you don't want it to be a module argument like
group=, owner=, and perm=? It would make much more sense to me...

.a.

Because you'd have to specify it every time and then would leave it
out, and also makes your playbook more verbose.

I believe I indicated I was open to making it configurable, if it were
a global setting.

I am just curious, why you don't want it to be a module argument like
group=, owner=, and perm=? It would make much more sense to me...

Because you'd have to specify it every time and then would leave it
out, and also makes your playbook more verbose.

That's right, but you could only have *one* behaviour at a time, while
I think that if someone will ever need this option would also like to
switch it on only for specific files. (again, just for the sake of
discussion)

.a.

preserve=(default false) ? values (times,ctime, owner, group,mode)
a single item or list of items

another option:

ctime={$item.ctime} user=${item.user} atime= ....
with_items: - filename

Implementing both/either should not be hard.

I'm not open to making it switchable on a per file basis.