How to set proxy only for a particular ansible task? -
i want set environment proxy particular ansible task get_url
module download application internet. other tasks should run without proxy. how achieve task.
you can set proxy per task, so:
get_url: url=http://remote.host.com/file dest=/tmp/file http_proxy: http://proxy.example.com:8080
Comments
Post a Comment