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.
I tried altering the dynamic inventory to that below.
#!/bin/bash
ssh <user@fuel-server> 'bash -s' < ./fuel.py
I can run the script from the command line of the Ansible server but it spits back what I think is a fuel client error. The same happens when I try to use the script as a dynamic inventory with Ansible (ansible -i dyn-invent all -m ping).
vagrant@ansible:~/playbooks/test-env$ ./dyn-invent
bash: line 3: import: command not found
bash: line 4: import: command not found
bash: line 5: import: command not found
bash: line 6: import: command not found
bash: line 7: import: command not found
bash: line 8: from: command not found
bash: line 9: from: command not found
usage:
fuel [optional args] <namespace> [action] [flags]
DEPRECATION WARNING:
In an upcoming release of Fuel Client, the syntax will
<snip snip>