How to execute ansible roles associated with hosts/hostgroups via API call on Red Hat Satellite 6?

Solution Unverified - Updated -

Issue

  • Is there any API call to run the ansible roles associated with hosts/hostgroups on Red Hat Satellite 6?
  • Unable to run ansible roles via API call on Red Hat Satellite 6.4.
  • Getting below error while executing the ansible roles via API call on Red Hat Satellite 6.4:
2019-11-15T11:58:14 [I|app|] Started POST "/api/v2/hosts/11/play_roles" for 192.168.xx.xx at 2019-11-15 11:58:14 +0100
2019-11-15T11:58:14 [F|app|] ActionController::RoutingError (No route matches [POST] "/api/v2/hosts/11/play_roles"):

Environment

  • Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In