title: How to access ansible controller hostname or ip?
body: <p>I need to know the hostname or IP of the machine where ansible was invoked, not the ones from the inventory.</p>
  
  <p>What is the easiest way to access this? Please note that I need to use this variable in tasks that executed on various hosts.</p>
  
  <p>Note that all these are not valid answers:
  - <code>ansible_hostname</code>
  - <code>inventory_hostname</code></p>