On 10. juli 2016 11:08, Rod Oliver wrote:
I have found a dynamic inventory script
(https://github.com/martineg/ansible-fuel-inventory) for Mirantis Fuel that
runs just fine on the Fuel host itself. In my case I can't install Ansible
on the Fuel server so need to to run the dynamic inventory script remotely.
I guess there ought to be a way to do this via SSH. Can anyone suggest how
to do this simply and preferably without modifying the dynamic inventory
script itself?

I guess this should work, but you'll need to set up ssh keys between Ansible control machine and the fuel server. Make a script(here called my_script.sh) on Ansible control machine and make it executable.

#!/bin/bash
ssh user@fuel-server /path/to/fuel.py

Then you can run ansible/ansible-playbook with
-i my_script.sh
or change ansible.cfg accordingly.

--
Kai Stian Olstad

--
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/57826A5D.8020702%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to