Last active
July 25, 2021 09:24
-
-
Save gowatana/d48cd3ebc4b3280af43c1d33efff97d5 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 / 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
下記の投稿むけ。
NSX ALB(Avi)から Ansible で情報取得してみる。(JSON ファイル)
https://vm.gowatana.jp/entry/2021/07/25/182129