What command in Ansible allows you to execute a single task on a set of hosts?

Hi,

What command in Ansible allows you to execute a single task on a set of hosts?

This question appeared in Ansible for the Absolute Beginners on Coursera, created by KodeKloud. No matter what I write, it keeps saying my answer is wrong. I can’t complete the course because it’s an 8 question exam, and I need a score of at least 80% to pass. Which means I can’t get any question wrong.

Thanks in advance!

I’m not sure about your precise question, but the ansible docs have a relevant example here.

HI Rob

Thanks for replying.
Yes, this is the answer I tried. However, its not correct yet.

Does the test have a solution key? I don’t have access to quizzes in Coursera so I don’t know what features the quiz system allows for. If there’s no solution, I’ll need to find a colleague who does have that access.

I’m told we’ve updated the answer for this question; please tell us if there’s any more trouble with it. thanks!