There's quite a few packages that will do something like this in possibly more efficient (parallel!) and structured way.
In RHEL7/Centos7 for example there is dsh, mpssh, mussh and of course Ansible (mentioned)
(I'd like to see a mention of why he chose StrictHostKeyChecking=no)