-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path06-standalone_to_primary.yaml
33 lines (31 loc) · 1.35 KB
/
06-standalone_to_primary.yaml
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
---
- name: Promote a standalone ISE node to Primary PAN
hosts: ise_nutanix
gather_facts: no
vars_files: vars/main.yaml
vars:
tasks:
# -------------------------------------------------------------------------
# Standalone ⮕ Primary: 🕑 ~60 seconds
# -------------------------------------------------------------------------
#
# Ⰹ ISE REST API: POST /api/v1/deployment/primary
# Promotes the node on which the API is invoked to the primary ISE PAN.
# Approximate execution time ~60 seconds!
# This will not trigger an ISE Application Server Restart!
#
# -------------------------------------------------------------------------
- name: Standalone to Primary | {{ inventory_hostname }}
cisco.ise.node_standalone_to_primary:
ise_hostname: "{{ inventory_hostname }}.securitydemo.net" # PPAN!
ise_username: "{{ ise_username }}"
ise_password: "{{ ise_password }}"
ise_verify: "{{ ise_verify }}"
ise_debug: "{{ ise_debug }}"
register: standalone_to_primary
changed_when:
- standalone_to_primary is defined
- standalone_to_primary.ise_response is defined
- standalone_to_primary.ise_response.success is defined
- standalone_to_primary.ise_response.success.message is defined
- standalone_to_primary.ise_response.success.message is search("successfully")