mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Added show interface example in JSON format (#40732)
* Added show interface example in JSON format Added show interface example in JSON format +label: docsite_pr +label: issue#311 * fixed whitespace
This commit is contained in:
parent
d6fb00e797
commit
d76ae943ed
1 changed files with 9 additions and 0 deletions
|
@ -73,6 +73,15 @@ EXAMPLES = '''
|
|||
commit: true
|
||||
description: "Ansible - add swps1-48"
|
||||
|
||||
- name: Fetch Details From All Interfaces In JSON Format
|
||||
nclu:
|
||||
commands:
|
||||
- show interface json
|
||||
register: output
|
||||
- name: Print Interface Details
|
||||
debug:
|
||||
var: output["msg"]
|
||||
|
||||
- name: Atomically add an interface
|
||||
nclu:
|
||||
commands:
|
||||
|
|
Loading…
Reference in a new issue