Raghav Sood

updated

6 years ago

0

741

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

 

  • bmcfeeters

    1 Rookie

    •

    72 Posts

    642

    0

    Posted 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

  • 613

    0

    Posted 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