in DevOps by
Q:
How to execute some errand (or) play on localhost

1 Answer

0 votes
by
In ansible, there is a module called delegate_to, in this module area give the specific host (or) has where your errands (or) assignment should be run.

undertakings:

name: ” Elasticsearch Hitting”

uri: url=’_search?q=status:new’ headers='{“Content-type”:”application/json”}’ method=GET return_content=yes

register: yield

delegate_to: 127.0.0.1

Related questions

+1 vote
asked May 11 in Linux by rajeshsharma
+1 vote
asked Aug 15, 2020 in DevOps by RShastri
...