forked from clay584/cleur_genie_demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
5.yml
27 lines (21 loc) · 734 Bytes
/
5.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
---
- hosts: localhost
connection: local
gather_facts: false
collections:
- clay584.genie
vars:
out_iosxe: |
NAME: "Chassis", DESCR: "Cisco CSR1000V Chassis"
PID: CSR1000V , VID: V00 , SN: 95G6BQT00TI
NAME: "module R0", DESCR: "Cisco CSR1000V Route Processor"
PID: CSR1000V , VID: V00 , SN: JAB1303001C
NAME: "module F0", DESCR: "Cisco CSR1000V Embedded Services Processor"
PID: CSR1000V , VID: , SN:
tasks:
- name: Show Raw CLI Output
debug:
msg: "{{ out_iosxe }}"
- name: Show Data Structure After Parsing
debug:
msg: "{{ out_iosxe | clay584.genie.parse_genie(command='show inventory', os='iosxe') }}"