Outputs to TXT & Compare

Hi all,

I have a playbook that grabas a config from a Network device, the issue is how can I configure the output so it can have the time stamp, on the name because it always saves the file with the same name. If I can fix that is there any way I can do a compare with the 2 files?

Thanks.