Any 5L or 3L will drop right in, as others have said.
As for the engine 'wiring harness', the beauty of these engines is that there is about half a dozen wires on the entire block. There is no ECU, no giant bundle of wires, it is almost entirely mechanical.
You have:
1) Coolant temp sensor, used for superglow system, intake side of block.
View attachment 3869342
2) Coolant temp sensor, goes to dash cluster - located on thermostat housing
View attachment 3869343
3) Oil pressure sensor, goes to dash cluster - located under oil cooler on exhaust side of the block
View attachment 3869344
4) Block ground - back of engine block
5) Fuel pump cutoff solenoid & tachometer pickup- rear of fuel pump
6) Glow plug bus connector - if superglow, also have a glow plug resistor. Adjacent to intake manifold.
View attachment 3869345
For the engine to run, that is it. You have your alternator, starter, and if you have A/C, a plug for that too. It would be very easy to splice all these into the 2L truck, I think the plugs will be the same, but even if they are not, just splice the original plugs from your 2L onto the 3L A/C comp and alternator. Not complicated.