With Germany, in contrast, the priority was to get us up and running as a democratic society. Mostly this was a side effect of needing a stronghold against Communist-Russia dominated GDR, but still - had the US gone through with de-industrialization of Germany as some plans wanted to, Germany would have been in chaos again.
Did Vietnam and Korea not happen? Plenty of nation building going on there. Vietnam failed because peacekeeping isn't the same as peacemaking. The Nazi fought to the last man (or close to it) and were beaten down completely; the Japanese were nuked into submission. Both of those are not or were not options in Vietnam, Iraq, and Afghanistan, where there was/is still strong opposition backed by foreign powers.
> There was no plan on how to fix/rebuild the country after the threat (Taliban/Saddam)
Afghanistan wasn't intended to be a long term fix, just chase out the Taliban, kill Osama, and let the Northern Alliance take over. That didn't work out so well. Nation building is also a lot easier when the nations were already global empires; Afghanistan is still having a hard time catching up to the 20th century.
Iraq was a deliberate failure in this regard, and troop numbers were kept deliberately low to more easily sell the operation to the public.
wasn't there an article trending on HN a few hours ago about the 2T$ for Afghanistan?