Skip to content

Instantly share code, notes, and snippets.

@gowatana
Last active July 25, 2021 09:24
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/d48cd3ebc4b3280af43c1d33efff97d5 to your computer and use it in GitHub Desktop.
Save gowatana/d48cd3ebc4b3280af43c1d33efff97d5 to your computer and use it in GitHub Desktop.
---
- name: Create / Output Avi SE Group
hosts: localhost
connection: local
gather_facts: false
vars_files:
- ./login.yml
vars:
avi_cloud_name: Default-Cloud
tasks:
- name: Create Avi SE Group
avi_serviceenginegroup:
controller: "{{ avi_controller }}"
username: "{{ avi_username }}"
password: "{{ avi_password }}"
api_version: "{{ avi_api_version }}"
cloud_ref: "/api/cloud?name={{ avi_cloud_name }}"
name: "Default-Group"
state: present
register: avi_segroup
- name: Output Avi SE Group
local_action:
module: copy
content: "{{ avi_segroup.obj | to_nice_json }}"
dest: ./avi_segroup_Default-Group.json
@gowatana
Copy link
Author

下記の投稿むけ。

NSX ALB(Avi)から Ansible で情報取得してみる。(JSON ファイル)
https://vm.gowatana.jp/entry/2021/07/25/182129

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