Slight optimization of how we squash loops.  Add dnf to the list of modules for which we squash.
Slight optimization of how we squash loops.  Add dnf to the list of modules for which we squash.

Fixes #11235

thaim/ansible,thaim/ansible