-
-
Save gowatana/ede6ccbb56fef060490108a918be6f4a 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 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 |
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