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

177 views
Skip to first unread message

Work-Hard

unread,
Jun 1, 2020, 2:45:21 PM6/1/20
to Ansible Project
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,

Nick Schendel

unread,
Jun 1, 2020, 2:56:25 PM6/1/20
to Ansible Project

Nick Schendel

unread,
Jun 1, 2020, 2:58:15 PM6/1/20
to Ansible Project
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:


most, if not all of the windows stuff has win_

Work-Hard

unread,
Jun 1, 2020, 3:07:09 PM6/1/20
to Ansible Project
Thank you for explaining. It is very helpful!

Cheers,
Reply all
Reply to author
Forward
0 new messages