mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00: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:
committed by
Alicia Cozine
parent
d6fb00e797
commit
d76ae943ed
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user