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?



---

##############################################################################################################
# add server                                                                
                                 #
# add service                                                              
                                  #
##############################################################################################################
extra_var_server:
  - name: "aaa01em"
    ip: "172.30.1.1"
    port: "80"
    servicetype: "HTTP"
  - name: "aaa02em"
    ip: "172.30.1.2"
    port: "80"
    servicetype: "HTTP"


##############################################################################################################
# bind service (including bind lb monitor)                                  
                                 #
##############################################################################################################
extra_var_monitorname:
  - tcp
  - http_serveralive_aspx


##############################################################################################################
# add lb vserver                                                            
                                 #
##############################################################################################################
extra_var_lb_vserver:
  - name: "testvsr"
    ip: "172.30.10.10"
    port: "80"
    servicetype: "HTTP"
    lbmethod: ""                        # choice = [ ROUNDROBIN, 
LEASTCONNECTION, LEASTRESPONSETIME, ... ]
    m: ""                               # choice = [ IP, MAC, IPTUNNEL, TOS 
]
    sessionless: ""                     # choice = [ enabled, disabled ]

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6670fcd3-bf2d-44cd-ad78-2f35a66716bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to