Afghanistan and Iraq, ostensibly intended to polarize the west against Muslims, and Muslims against the west, actually hurt Israel immeasurably. A death of a thousand cuts. Attacking Iran likewise would weaken western strength not just in the Muslim world but in BRICS countries and elsewhere. It makes no sense.
ISIS claims responsibility for bombing in Baghdad suburb; death toll hits 21 (Reuters)
from the article: Hezbollah: Israeli attack on Iran would set Middle East ablaze