In my playbook, I want to run a script on a remote machine (“client” in my case) which requires the IP address of the other remote machine (server) as an cmd line argument to that script. My playbook looks like this.
No I want to send the IP address of “server” as a command line argument to a script which is be run on “client”
client and server are 2 separate nodes - not the host on which ansible is running.
{{ inventory_hostname }} has all hosts in it. I’m looking for a particular host from the group “server” out of them.