-
Notifications
You must be signed in to change notification settings - Fork 4
/
ise.nodes.yaml
32 lines (30 loc) · 982 Bytes
/
ise.nodes.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
---
- name: Get ISE Nodes
hosts: ise
gather_facts: no
vars_files: vars/main.yaml
tasks:
- name: Get All ISE Nodes in the Deployment
delegate_to: localhost
cisco.ise.node_deployment_info:
ise_hostname: "{{ ansible_host }}"
ise_username: "{{ ise_username }}"
ise_password: "{{ ise_password }}"
ise_verify: "{{ ise_verify }}"
ise_debug: "{{ ise_debug }}"
register: deployment_info
- name: Show ISE Nodes
ansible.builtin.debug:
var: deployment_info
- name: Show ISE Facts Summary Table
delegate_to: localhost
when:
- deployment_info is defined
- deployment_info.ise_response | length > 0
vars:
# maxw: 30
# head: "{{ facts_head }}"
hide: ['ipAddress']
rows: "{{ deployment_info.ise_response | flatten }}"
temp: "{{ lookup('template', 'list_of_dicts.j2') }}"
ansible.builtin.shell: "echo '{{ temp }}' > /dev/tty"