Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created November 28, 2022 23:44
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/801be82724c44022014b2b76021354d9 to your computer and use it in GitHub Desktop.
Save gowatana/801be82724c44022014b2b76021354d9 to your computer and use it in GitHub Desktop.
---
- name: delete Avi VS
hosts: localhost
connection: local
gather_facts: false
collections:
- vmware.alb
vars_files:
- creds.yml
tasks:
- name: delete Virtual Service
avi_virtualservice:
avi_credentials: "{{ avi_credentials | default(omit) }}"
name: test-vs-01
state: absent
- name: delete pool
avi_pool:
avi_credentials: "{{ avi_credentials | default(omit) }}"
name: test-pool-01
state: absent
- name: delete vip
avi_vsvip:
avi_credentials: "{{ avi_credentials | default(omit) }}"
name: test-vip-01
state: absent
@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