I think the currency of Daesh is significantly weakened when the territory it controls is being taken back, with the uprooting of mass graves and displaced communities coming back. I think in this case the military isn't completely divorced from the ideology. The story of Daesh coming in I don't think was necessarily because the Sunni Arab community in Iraq or Syria was especially Salafi; they were just looking for any ideological vehicle to politically deliver them from central governments that they found oppressive. When that turns out to be a chimera, a dead end, then I would assume they would open up to other alternatives that aren't Salafi Islam.
On November 15th, 2016. See this statement in context.