How will you deal with this problem? [extra-variable problem]

Currently I am using citirx’s L4 switch. I need to create 1 to 10 servers for each L4 switch. To do this I need extra_variables.

( The extra variable below was used to create only two servers. )

When I have to make 10 servers, I have too many to define in extra_variable

The problem is that it is difficult to read as well as hard to write

I’m using Ansible Tower(3.2.1), Ansible(2.4.2)

If so, how will you solve this problem?