-
-
Save gowatana/371c17520d8a8bd038a9bdc0a6e1cc90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
下記の投稿むけ。
NSX ALB(Avi)を Ansible で操作してみる。Part-03 Virtual Service の作成 / 削除
https://vm.gowatana.jp/entry/2022/11/29/085700