Create virtual server from CSV

I have a requirement to build out a virtual server by parsing the items from a CSV spreadsheet. I have it working if I’m creating a single virtual server, but if I need a virtual server using port 443 and another one using port 80 and both VIPs using the same VIP IP and pool member IP I cant get it to work. How do I tell ansible to parse the values for the port 80 virtual and not the values for the port 443 virtual server. Or is my problem related to the playbook itself.

I’m using an include statement to call two seperate playbooks one for the 443 virtual and the other for the port 80 virtual server. Whats happening is ansible is creating the port 80 virtual server (this is the first one being called and the first row in the CSV file) but then its trying to use this same port 80 playbook to build the 443 virtual server and it fails.

I need a way to have ansible build the port 80 virtual server from the port 80 playbook and CSV information and then when that complete successfully create the 443 virtual server using the port 443 playbook and the 443 CSV information.