Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created November 28, 2022 16:35
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/9324dcff65900c906394472265d8ef3d to your computer and use it in GitHub Desktop.
Save gowatana/9324dcff65900c906394472265d8ef3d to your computer and use it in GitHub Desktop.
---
- name: setup Avi Network
hosts: localhost
connection: local
gather_facts: false
collections:
- vmware.alb
vars_files:
- creds.yml
tasks:
- name: setup Avi Network (Management)
avi_network:
avi_credentials: "{{ avi_credentials | default(omit) }}"
name: dvpg-0010-mgmt
dhcp_enabled: false
ip6_autocfg_enabled: false
configured_subnets:
- prefix:
ip_addr:
addr: 192.168.10.0
type: V4
mask: 24
static_ip_ranges:
- range:
begin:
addr: 192.168.10.65
type: V4
end:
addr: 192.168.10.68
type: V4
type: STATIC_IPS_FOR_SE
state: present
- name: setup Avi Network (VIP)
avi_network:
avi_credentials: "{{ avi_credentials | default(omit) }}"
name: dvpg-0061-avi-01
dhcp_enabled: false
ip6_autocfg_enabled: false
configured_subnets:
- prefix:
ip_addr:
addr: 192.168.61.0
type: V4
mask: 24
static_ip_ranges:
- range:
begin:
addr: 192.168.61.220
type: V4
end:
addr: 192.168.61.239
type: V4
type: STATIC_IPS_FOR_VIP_AND_SE
state: present
- name: setup Avi Network (Backend)
avi_network:
avi_credentials: "{{ avi_credentials | default(omit) }}"
name: dvpg-0062-avi-02
dhcp_enabled: false
ip6_autocfg_enabled: false
configured_subnets:
- prefix:
ip_addr:
addr: 192.168.62.0
type: V4
mask: 24
static_ip_ranges:
- range:
begin:
addr: 192.168.62.101
type: V4
end:
addr: 192.168.62.104
type: V4
type: STATIC_IPS_FOR_SE
state: present
@gowatana
Copy link
Author

下記の投稿むけ。

NSX ALB(Avi)を Ansible で操作してみる。Part-02 NSX ALB Controller の初期設定
https://vm.gowatana.jp/entry/2022/11/29/020349

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