Question: how to Use name of shell script as value to variable and execute it

Hi All,

I have a requirement to login to multiple application servers and just run different scripts individually on different servers
Rather than creating task for each server - I would like to just create one task with name of the shell script in a variable

How can we implement this

Eg :
====inventory file===

[APP]
host1.example.com path=/home/app script=start.sh

host2.example.com path=/home/app2 script=echo y | start_app.sh

===YAML file===