Module for setup of HTTPPolicySet Avi RESTful Object
- This module is used to configure HTTPPolicySet object.
- More examples at (https://github.com/avinetworks/devops).
- hosts: localhost
connection: local
collections:
- vmware.alb
vars:
avi_credentials:
username: "{{ username }}"
password: "{{ password }}"
controller: "{{ controller }}"
api_version: "{{ api_version }}"
tasks:
- name: Create a HTTP Policy set two switch between testpool1 and testpool2
avi_httppolicyset:
avi_credentials: "{{ avi_credentials }}"
name: test-HTTP-Policy-Set
tenant_ref: /api/tenant?name=admin
http_request_policy:
rules:
- index: 1
enable: true
name: test-test1
match:
path:
match_case: INSENSITIVE
match_str:
- /test1
match_criteria: EQUALS
switching_action:
action: HTTP_SWITCHING_SELECT_POOL
status_code: HTTP_LOCAL_RESPONSE_STATUS_CODE_200
pool_ref: "/api/pool?name=testpool1"
- index: 2
enable: true
name: test-test2
match:
path:
match_case: INSENSITIVE
match_str:
- /test2
match_criteria: CONTAINS
switching_action:
action: HTTP_SWITCHING_SELECT_POOL
status_code: HTTP_LOCAL_RESPONSE_STATUS_CODE_200
pool_ref: "/api/pool?name=testpool2"
is_internal_policy: false
- Gaurav Rastogi ([email protected])
- Sandeep Bandi ([email protected])
- Amol Shinde ([email protected])