forked from mpinizzotto/nsx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdelete_registration.yml
40 lines (31 loc) · 988 Bytes
/
delete_registration.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
---
- name: Registering NSX Manager with VCenter and SSO
hosts: localhost
connection: local
gather_facts: False
vars_files:
- answerfile_deploy.yml
tasks:
- name: NSX Manager SSO Registration
nsx_sso_registration:
state: absent
nsxmanager_spec: "{{ nsxmanager_spec }}"
sso_lookupservice_url: 'lookupservice/sdk'
sso_lookupservice_port: 7444
sso_lookupservice_server: "{{ vcSsoHostname }}"
sso_admin_username: "{{ vcSsoUser }}"
sso_admin_password: "{{ vcSsoPassword }}"
#sso_certthumbprint:
accept_all_certs: true
register: register_to_sso
- name: NSX Manager VC Registration
nsx_vc_registration:
nsxmanager_spec: "{{ nsxmanager_spec }}"
vcenter: "{{ vcHostname }}"
vcusername: "{{ vcUser }}"
vcpassword: "{{ vcPassword }}"
#vccertthumbprint:
accept_all_certs: true
register: register_to_vc
# - debug: var=register_to_sso
# - debug: var=register_to_vc