Ansible Post provision tasks

Hi Team,

We are having 2 tasks both are configured in post provision. One task needs to execute on the same instance and other tasks need to execute on other host which we get it as the input. Could you please let me know which is the feasible way.

If that other host is an instance in Morpheus, you could make an API call to run the second task against the other instance. The functionality to run Ansible against multiple targets in Morpheus in limited currently. There are workarounds, but I think the easiest way would be an API call.