Here's a simple cfg grab pulled from netconf using ansible
---
- name: Grab_Cfg_Netconf
hosts: all
gather_facts: no
tasks:
- name: Get Configuration from device
netconf_get:
display: json
register: config
- name: PrintConfig
debug:
var: config.output
No comments:
Post a Comment