mirror of https://github.com/ansible/ansible.git
Add disable operation for netscaler_servicegroup (#28327)
parent
2281a6676b
commit
c01dd6470c
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- include: "{{ role_path }}/tests/nitro/flap_disabled/setup.yaml"
|
||||||
|
vars:
|
||||||
|
check_mode: no
|
||||||
|
|
||||||
|
- include: "{{ role_path }}/tests/nitro/flap_disabled/remove.yaml"
|
||||||
|
vars:
|
||||||
|
check_mode: no
|
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Remove servicegroup
|
||||||
|
delegate_to: localhost
|
||||||
|
register: result
|
||||||
|
check_mode: "{{ check_mode }}"
|
||||||
|
netscaler_servicegroup:
|
||||||
|
|
||||||
|
nitro_user: "{{nitro_user}}"
|
||||||
|
nitro_pass: "{{nitro_pass}}"
|
||||||
|
nsip: "{{nsip}}"
|
||||||
|
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
servicegroupname: service-group-1
|
||||||
|
servicetype: HTTP
|
@ -0,0 +1,47 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Flap servicegroup
|
||||||
|
delegate_to: localhost
|
||||||
|
register: result
|
||||||
|
check_mode: "{{ check_mode }}"
|
||||||
|
netscaler_servicegroup:
|
||||||
|
|
||||||
|
nitro_user: "{{nitro_user}}"
|
||||||
|
nitro_pass: "{{nitro_pass}}"
|
||||||
|
nsip: "{{nsip}}"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
|
||||||
|
servicegroupname: service-group-1
|
||||||
|
servicetype: HTTP
|
||||||
|
servicemembers:
|
||||||
|
- ip: 10.78.78.78
|
||||||
|
port: 80
|
||||||
|
weight: 100
|
||||||
|
|
||||||
|
disabled: "{{ item|int % 2 }}"
|
||||||
|
with_sequence: count=20
|
||||||
|
delay: 1
|
||||||
|
|
||||||
|
- name: Flap servicegroup
|
||||||
|
delegate_to: localhost
|
||||||
|
register: result
|
||||||
|
check_mode: "{{ check_mode }}"
|
||||||
|
netscaler_servicegroup:
|
||||||
|
|
||||||
|
nitro_user: "{{nitro_user}}"
|
||||||
|
nitro_pass: "{{nitro_pass}}"
|
||||||
|
nsip: "{{nsip}}"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
|
||||||
|
servicegroupname: service-group-1
|
||||||
|
servicetype: HTTP
|
||||||
|
servicemembers:
|
||||||
|
- ip: 10.78.78.78
|
||||||
|
port: 80
|
||||||
|
weight: 100
|
||||||
|
|
||||||
|
disabled: "{{ item|int % 2 }}"
|
||||||
|
with_sequence: count=20
|
||||||
|
delay: 5
|
Loading…
Reference in New Issue