Which capacitors for L7805 regulator?

A motor does not require a good regulated voltage.

As long as the maximum voltage is not succeded and the input is DC (required in your case) it will run fine.

I was thinking of a sensitive electronic device.