2013-03-07 16:14:19 +01:00
|
|
|
---
|
|
|
|
#
|
|
|
|
# NetScaler module example
|
|
|
|
#
|
|
|
|
|
|
|
|
- hosts: web-pool
|
|
|
|
serial: 3
|
|
|
|
vars:
|
|
|
|
nsc_host: nsc.example.com
|
|
|
|
nsc_user: admin
|
|
|
|
nsc_pass: nimda
|
|
|
|
# type of the netscaler object you want to manipulate
|
|
|
|
type: service
|
|
|
|
# netscaler object name
|
2013-05-05 19:40:12 +02:00
|
|
|
name: "{{facter_fqdn}}:8080"
|
2013-03-07 16:14:19 +01:00
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: disable service in the lb
|
2013-05-05 19:40:12 +02:00
|
|
|
action: netscaler nsc_host={{nsc_host}} user={{nsc_user}} password={{nsc_pass}} name={{name}} type={{type}} action=disable
|
2013-03-07 16:14:19 +01:00
|
|
|
|
|
|
|
- name: deploy new code
|
|
|
|
action: shell yum upgrade -y
|
|
|
|
|
|
|
|
- name: enable in the lb
|
2013-05-05 19:40:12 +02:00
|
|
|
action: netscaler nsc_host={{nsc_host}} user={{nsc_user}} password={{nsc_pass}} name={{name}} type={{type}} action=enable
|