Forum Discussion

e0013192_143645's avatar
e0013192_143645
Icon for Nimbostratus rankNimbostratus
Mar 19, 2019

Ansible parse csv to add multiple pool members

I'm trying to use an Ansible playbook to build out several pools with each pool having at least 5 members. When I build my spreadsheet what appears to happen is it read the playbook and creates the pool then it adds the first member to the pool which is good. The issue is instead of looping through the CSV to get all the pool members its builds the next pool and one server assigned to the next pool. I'm trying to figure out how to tell the playbook to loop through and get all the members associated to the pool.