Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
---
- 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

This comment has been minimized.

Copy link
Owner Author

@gowatana gowatana commented Jul 25, 2021

下記の投稿むけ。

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