Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created November 28, 2022 23:38
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/371c17520d8a8bd038a9bdc0a6e1cc90 to your computer and use it in GitHub Desktop.
Save gowatana/371c17520d8a8bd038a9bdc0a6e1cc90 to your computer and use it in GitHub Desktop.
---
- name: create Avi VIP
hosts: localhost
connection: local
gather_facts: false
collections:
- vmware.alb
vars_files:
- creds.yml
tasks:
- name: create vip
avi_vsvip:
avi_credentials: "{{ avi_credentials | default(omit) }}"
name: test-vip-01
vip:
- vip_id: 1
ip_address:
addr: 192.168.61.241
type: V4
prefix_length: 32
enabled: true
placement_networks:
- network_ref: "/api/network?name=dvpg-0061-avi-01"
subnet:
ip_addr:
addr: 192.168.61.0
type: V4
mask: 24
state: present
@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