Hiya.
In my playbook, I have two plays: the first is to be run on the control host, the second is run on a set of remote app hosts. What I want to do is have a variable determined by a task in the first play be used as a shell script argument for a task in the second play. I don’t know how to do this. Can anyone help? Is this possible?
Here’s a simplification of how these are called in my ansible deployment orchestration playbook. The json determined by a tool on the control host in common/test_prep.yml needs to be used as the input parameter to a tool which is called inside of ``common/test_client_check.yml on each client 'myhosts'.
`
$ cat testplaybook.yml