Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: localhost
- vars:
- cs_rules: []
- cs_array: []
- cs_items:
- - match_str:
- - wireless
- - mobile
- pool: gary_pool4_MOBILE
- name: mobile-rule
- - match_str:
- - test
- pool: gary_pool4_test
- name: test-rule
- rule_template:
- - index: "{{ item.0 }}"
- enable: true
- name: "{{ item.1.name }}"
- match:
- path:
- match_case: INSENSITIVE
- match_str: "{{ item.1.match_str }}"
- match_criteria: CONTAINS
- switching_action:
- action: HTTP_SWITCHING_SELECT_POOL
- status_code: HTTP_LOCAL_RESPONSE_STATUS_CODE_200
- pool_ref: "/api/pool?name={{ item.1.pool }}"
- tasks:
- - name: Create Content switching rule
- debug: msg={{ rule_template }}
- with_indexed_items: cs_items
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement