-
Notifications
You must be signed in to change notification settings - Fork 56
/
lbvserver.yaml
74 lines (74 loc) · 3.8 KB
/
lbvserver.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
- name: Simple LBVserver playbook
hosts: localhost
gather_facts: false
tasks:
- name: Sample Task | service
delegate_to: localhost
netscaler.adc.service:
# nsip: 10.0.0.1 # This can also be given via NETSCALER_NSIP environment variable
# nitro_user: nitrouser # This can also be given via NETSCALER_NITRO_USER environment variable
# nitro_pass: verysecretpassword # This can also be given via NETSCALER_NITRO_PASS environment variable
# nitro_protocol: https # This can also be given via NETSCALER_NITRO_PROTOCOL environment variable
# validate_certs: false # This can also be given via NETSCALER_VALIDATE_CERTS environment variable
# save_config: false # This can also be given via NETSCALER_SAVE_CONFIG environment variable
state: present
name: s1
ipaddress: 10.10.10.181
servicetype: HTTP
port: 80
- name: Sample Task | service
delegate_to: localhost
netscaler.adc.service:
# nsip: 10.0.0.1 # This can also be given via NETSCALER_NSIP environment variable
# nitro_user: nitrouser # This can also be given via NETSCALER_NITRO_USER environment variable
# nitro_pass: verysecretpassword # This can also be given via NETSCALER_NITRO_PASS environment variable
# nitro_protocol: https # This can also be given via NETSCALER_NITRO_PROTOCOL environment variable
# validate_certs: false # This can also be given via NETSCALER_VALIDATE_CERTS environment variable
# save_config: false # This can also be given via NETSCALER_SAVE_CONFIG environment variable
state: present
name: s2
ipaddress: 10.10.10.10
servicetype: HTTP
port: 80
- name: Sample Task | servicegroup
delegate_to: localhost
netscaler.adc.servicegroup:
# nsip: 10.0.0.1 # This can also be given via NETSCALER_NSIP environment variable
# nitro_user: nitrouser # This can also be given via NETSCALER_NITRO_USER environment variable
# nitro_pass: verysecretpassword # This can also be given via NETSCALER_NITRO_PASS environment variable
# nitro_protocol: https # This can also be given via NETSCALER_NITRO_PROTOCOL environment variable
# validate_certs: false # This can also be given via NETSCALER_VALIDATE_CERTS environment variable
# save_config: false # This can also be given via NETSCALER_SAVE_CONFIG environment variable
state: present
servicegroupname: sg1
servicetype: HTTP
- name: Sample Task | lbvserver with bindings
delegate_to: localhost
netscaler.adc.lbvserver:
# nsip: 10.0.0.1 # This can also be given via NETSCALER_NSIP environment variable
# nitro_user: nitrouser # This can also be given via NETSCALER_NITRO_USER environment variable
# nitro_pass: verysecretpassword # This can also be given via NETSCALER_NITRO_PASS environment variable
# nitro_protocol: https # This can also be given via NETSCALER_NITRO_PROTOCOL environment variable
# validate_certs: false # This can also be given via NETSCALER_VALIDATE_CERTS environment variable
# save_config: false # This can also be given via NETSCALER_SAVE_CONFIG environment variable
state: present
name: test_lbvser
servicetype: HTTP
ipv46: 10.10.10.11
port: 80
lbmethod: LEASTCONNECTION
lbvserver_servicegroup_binding:
# mode: desired # bind | unbind | desired
binding_members:
- name: test_lbvser
servicename: sg1
lbvserver_service_binding:
# mode: desired # bind | unbind | desired
binding_members:
- name: test_lbvser
servicename: s1
weight: 16
- name: test_lbvser
servicename: s2
weight: 20