netscaler module example playbook
This commit is contained in:
parent
74ced2d80c
commit
2120580f7a
1 changed files with 25 additions and 0 deletions
25
examples/playbooks/netscaler.yml
Normal file
25
examples/playbooks/netscaler.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
#
|
||||
# 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
|
||||
name: ${facter_fqdn}:8080
|
||||
|
||||
tasks:
|
||||
- name: disable service in the lb
|
||||
action: netscaler nsc_host=${nsc_host} user=${nsc_user} password=${nsc_pass} name=${name} type=${type} action=disable
|
||||
|
||||
- name: deploy new code
|
||||
action: shell yum upgrade -y
|
||||
|
||||
- name: enable in the lb
|
||||
action: netscaler nsc_host=${nsc_host} user=${nsc_user} password=${nsc_pass} name=${name} type=${type} action=enable
|
Loading…
Reference in a new issue