In modern history...we have always needed commitment and a solid goal. In the above 2 conflicts we had neither.
A very clear, very easily understood objective.

The military is trained to kill people and break things. Give them the objective and let them do those things.

Where I see our failings at is trying to be "peace keepers" or fight "police actions".