Comments (2)
The way you would probably go about it is that you would have a playbook defining the cs vserver and its cs policy bindings like so
- name: Setup content switching vserver
delegate_to: localhost
citrix_adc_cs_vserver:
nsip: 172.18.0.2
nitro_user: nsroot
nitro_pass: nsroot
state: present
name: cs_vserver_1
ipv46: 192.168.1.1
port: 80
servicetype: HTTP
policybindings:
- policyname: regular_policy_1
priority: 90
- policyname: regular_policy_2
priority: 100
- policyname: regular_policy_3
priority: 120
When you need to apply the maintenance page you would run to apply the following playbook
- name: Setup content switching vserver
delegate_to: localhost
citrix_adc_cs_vserver:
nsip: 172.18.0.2
nitro_user: nsroot
nitro_pass: nsroot
state: present
name: cs_vserver_1
ipv46: 192.168.1.1
port: 80
servicetype: HTTP
policybindings:
- policyname: regular_policy_1
priority: 90
- policyname: regular_policy_2
priority: 100
- policyname: maintenance_policy
priority: 115
- policyname: regular_policy_3
priority: 120
The cs vserver module should take care of the deletion and addition of bindings.
You need to apply the whole configuration again for the cs vserver since ansible has no notion of applying a diff to an existing configuration.
from ansible-collection-netscaleradc.
Awesome. Thanks a lot Giorgos.
I will run a lab. It's a pretty complex setup and very critical with cache, rewrite, cs policies etc. so I will see how it goes on a lab.
from ansible-collection-netscaleradc.
Related Issues (20)
- [Bug]: netscaler.adc.sslcertkey module - linkcertkeyname parameter has no affect HOT 1
- [FEATURE REQUEST]: handle seenario when both username/password and token are given for authentication
- [Bug]: "ERROR: Primary key `serverip` is missing for the resource `ntpserver`" HOT 1
- [Bug]: unable to delete lbvserver (netscaler.adc 2.1.0) HOT 2
- [Bug]: lbmonitor (netscaler.adc 2.1.0) HOT 3
- [Bug]: service healthmonitor setting fails with incorrect type (netscaler.adc 2.1.0) HOT 2
- [FEATURE REQUEST]: save configuration module HOT 6
- [Bug]: can't delete servicegoup (2.1.0) HOT 3
- [FEATURE REQUEST]: restoring default values HOT 2
- [Bug]: dnsproxyrecords supports no state HOT 2
- [Bug]: unset netprofile gap? 2.3.0 HOT 1
- [Bug]: netscaler.adc.policypatset: policypatset_pattern_binding: binding_members returning "KeyError: string" error HOT 5
- [FEATURE-REQUEST]: `unset`ting of a param in `state:present` HOT 4
- [Bug]: Cipher Group recreating even if exists HOT 1
- [Help]: SSLCertKey link doesn't work with the new version HOT 1
- [Bug]: ERROR: Primary key `name` is missing for the resource `lbvserver_servicegroup_binding HOT 9
- [Bug]: systemglobal_authenticationtacacspolicy_binding module idempotency issue HOT 5
- [FEATURE REQUEST]: update tests to include ansible-2.14 and ansible-2.16
- [Bug]: hasync module missing state values
- [FEATURE REQUEST]: Update `requires_ansible` to 2.15 before May as Ansible Automation Platform 2.3 will reach its EoL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-collection-netscaleradc.