forked from vmware-archive/ansible-for-nsxt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_compute_managers.yml
More file actions
27 lines (27 loc) · 881 Bytes
/
test_compute_managers.yml
File metadata and controls
27 lines (27 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright 2018 VMware, Inc.
# SPDX-License-Identifier: BSD-2-Clause OR GPL-3.0-only
---
- hosts: 127.0.0.1
connection: local
become: yes
vars_files:
- answerfile.yml
tasks:
- name: Register compute manager
nsxt_fabric_compute_managers:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: False
#compute_manager_id: "25d314b6-97f2-48e2-87b5-f9ce04caf5f8"
display_name: "{{item.display_name}}"
server: "{{item.server}}"
origin_type: "{{item.origin_type}}"
credential:
credential_type: "{{item.credential_type}}"
username: "{{item.username}}"
password: "{{item.password}}"
thumbprint: "{{item.thumbprint}}"
state: present
with_items:
- "{{compute_managers}}"