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 ?
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
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