Is there any way to use distro-sync (Distribution Synchronization) option of yum inside Yum Ansible Module.?

Hi , I want below command simulation using Ansible yum module:
yum distro-sync --disablerepo=‘*’ --enablerepo=‘myrepo’

I dont think currently yum provides any option called distro-sync. Does that mean i need to use shell module for such command emulation?