On Sunday, July 17, 2016 at 12:55:17 AM UTC-7, Rod Oliver wrote:
>
> Thanks for the reply, apologies for late response.
>
> I *think* the command "ssh user@fuel-server /path/to/fuel.py" attempts to 
> run the command "/path/to/fuel.py" on the fuel-server. In any case the 
> script fails.
>

would you mind sharing what specifically fails?
 

>
> I tried altering the dynamic inventory to that below.
>
> #!/bin/bash
> ssh <user@fuel-server> 'bash -s' < ./fuel.py
>

isn't this telling bash to interpret fuel.py ??? don't you want something 
more like 

#!/bin/bash
> ssh <user@fuel-server> 'python' < ./fuel.py
>
 at which point I'd think that copying fuel.py over to "fuel-server" and 
running it as:

> #!/bin/bash
> ssh <user@fuel-server> 'python /path/on/fuel/server//fuel.py'
>
> would be more natural IMO.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8a4be1b3-955e-4110-b7c1-c41deb85f42d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to