Start a Conversation

Solved!

Go to Solution

684

January 25th, 2021 05:00

Ansible Isilon : Using ansible hosts file for "onefs_hosts" values

I am new to using Isilon module, and as I am going through the examples I don't see it relying on the ansible hostfile. Is it possible to set { { onefs_hosts }} value from ansible hosts file ?  

 

thanks,

Raghav Sood

 

72 Posts

January 25th, 2021 09:00

Hi Raghav,

All of our Ansible modules use an underlying python SDK to connect to the REST API of the storage platform.  Therefore we leverage "local playbooks" for execution and don't use a hosts file
https://docs.ansible.com/ansible/latest/user_guide/playbooks_delegation.html#local-playbooks

It sounds like you are looking to run a task against multiple Isilon systems?  If that is the case you could setup a simple list in a vars.yaml file and then loop over that file in a task substituting in the { {onefs_host}} variable each time through the loop

Thanks
Bryan

February 1st, 2021 05:00

Hello Bryan,

Thank you for the reply. I am in indeed planning to use Isilon playbooks to manage multiple clusters. Will give this a try. 

Thanks,

Raghav

No Events found!

Top