in DevOps by (23.9k points)
How to execute some errand (or) play on localhost

1 Answer

0 votes
by (20.8k points)
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

0 votes
asked Feb 2, 2021 in JAVA by SakshiSharma (32.2k points)
0 votes
asked Jun 29, 2022 in Bitbucket by sharadyadav1986 (31.7k points)
0 votes
asked May 27, 2019 in Gradle by Ankita1283 (81 points)
...