Which module can I use to run command on command prompt on all my hosts ?

Hi,
Which module can I use as a task to run a command on the command prompt on all my hosts?

example -

cmd: gpupdate/force

Thanks,

https://docs.ansible.com/ansible/latest/modules/win_command_module.html#win-command-module

Since you mentioned gpupdate, then I assumed windows. Ultimately the best place to look to figure out what you can use is to search the all module index:

https://docs.ansible.com/ansible/latest/modules/list_of_all_modules.html

most, if not all of the windows stuff has win_

Thank you for explaining. It is very helpful!

Cheers,