Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created November 28, 2022 23:42
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/ede6ccbb56fef060490108a918be6f4a to your computer and use it in GitHub Desktop.
Save gowatana/ede6ccbb56fef060490108a918be6f4a to your computer and use it in GitHub Desktop.
---
- name: create Avi Pool
hosts: localhost
connection: local
gather_facts: false
collections:
- vmware.alb
vars_files:
- creds.yml
tasks:
- name: create pool
avi_pool:
avi_credentials: "{{ avi_credentials | default(omit) }}"
name: test-pool-01
enabled: true
default_server_port: 80
servers:
- hostname: lab-web-01
ip:
addr: 192.168.62.72
type: V4
nw_ref: "/api/vimgrnwruntime?name=dvpg-0062-avi-02"
ratio: 1
enabled: true
- hostname: lab-web-02
ip:
addr: 192.168.62.91
type: V4
nw_ref: "/api/vimgrnwruntime?name=dvpg-0062-avi-02"
ratio: 1
enabled: true
analytics_profile_ref: "/api/analyticsprofile?name=System-Analytics-Profile"
health_monitor_refs:
- "/api/healthmonitor?name=System-HTTP"
fail_action:
type: FAIL_ACTION_CLOSE_CONN
lb_algorithm: LB_ALGORITHM_ROUND_ROBIN
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