The reason the Lebanon War of 2006 was largely considered an Israeli failure is that Israel didn't give any consideration to the Media-front. When the attack bogged down & the IDF started taking casualties it was over. The Israeli populace (casualties) & foreign pressure (read Arab propaganda) brought an end to that campaign before any of the really big military objectives were met. That's my take, anyway.
“Israel didn’t give any consideration to the Media-front”
That would more likely be so, were the “Media-front” honest and unbiased, but that isn’t the case. The global media tends to be decidedly pro-arab and no laying of the PR groundwork will make the case any better for the Israelis. The failure against Hezbollah, I believe, was due to too much restraint on the part of the IDF. Failure would not have been an option were Netanyahu the PM.