0 votes
in Ansible by
How can you use the Ansible module “uri” to send a POST request to a web service?

a) By using the “method” parameter with the value “POST” and the “url” parameter to specify the URL of the web service

b) By using the “url” parameter to specify the URL of the web service and the “data” parameter to specify the data to be sent in the POST request

c) By using the “body” parameter to specify the data to be sent in the POST request and the “URL” parameter to specify the URL of the web service

d) By using the “request” parameter with the value “POST” and the “url” parameter to specify the URL of the web service

1 Answer

0 votes
by

Answer: b) By using the “url” parameter to specify the URL of the web service and the “data” parameter to specify the data to be sent in the POST request

Explanation: The Ansible module “uri” can be used to send a POST request to a web service by using the “url” parameter to specify the URL of the web service and the “data” parameter to specify the data to be sent in the POST request.

...