Skip to content

Instantly share code, notes, and snippets.

@gowatana
Last active November 28, 2022 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gowatana/ca0926b22a76125092df994a165e2a65 to your computer and use it in GitHub Desktop.
Save gowatana/ca0926b22a76125092df994a165e2a65 to your computer and use it in GitHub Desktop.
---
- name: create Avi Virtual Service
hosts: localhost
connection: local
gather_facts: false
collections:
- vmware.alb
vars_files:
- creds.yml
tasks:
- name: create Avi Virtual Service
avi_virtualservice:
avi_credentials: "{{ avi_credentials | default(omit) }}"
name: test-vs-01
state: present
services:
- port: 80
se_group_ref: "/api/serviceenginegroup?name=Default-Group"
vsvip_ref: "/api/vsvip?name=test-vip-01"
pool_ref: "/api/pool?name=test-pool-01"
type: VS_TYPE_NORMAL
vrf_context_ref: "/api/vrfcontext?name=global"
enabled: true
network_profile_ref: "/api/networkprofile?name=System-TCP-Proxy"
application_profile_ref: "/api/applicationprofile?name=System-HTTP"
error_page_profile_ref: "/api/errorpageprofile?name=Custom-Error-Page-Profile"
analytics_profile_ref: "/api/analyticsprofile?name=System-Analytics-Profile"
content_rewrite:
rewritable_content_ref: "/api/stringgroup?name=System-Rewritable-Content-Types"
sideband_profile:
sideband_max_request_body_size: 1024
@gowatana
Copy link
Author

下記の投稿むけ。

NSX ALB(Avi)を Ansible で操作してみる。Part-03 Virtual Service の作成 / 削除
https://vm.gowatana.jp/entry/2022/11/29/085700

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment