W3cubDocs

/Ansible 2.10

dellemc.os10.show_system_network_summary – Operations for show_system_network output in json/yaml format.

Note

This plugin is part of the dellemc.os10 collection.

To install it use: ansible-galaxy collection install dellemc.os10.

To use it in a playbook, specify: dellemc.os10.show_system_network_summary.

Synopsis

  • Get the show system inforamtion of a Leaf-Spine.

Parameters

Parameter Choices/Defaults Comments
cli_responses
list / elements=string / required
show system command xml output
output_type
string
Default:
"json"
json or yaml
Default value is json

Examples

Copy below YAML into a playbook (e.g. play.yml) and run as follows:

#$ ansible-playbook -i inv show.yml
name: show system Configuration
hosts: localhost
connection: local
gather_facts: False
vars:
  cli:
    username: admin
    password: admin
tasks:
- name: "Get Dell EMC OS10 Show system summary"
  os10_command:
    commands: ['show system | display-xml']
    provider: "{{ hostvars[item].cli }}"
  with_items: "{{ groups['all'] }}"
  register: show_system
- set_fact:
     output:  "{{ output|default([])+ [{'inv_name': item.item, 'host': item.invocation.module_args.provider.host, 'stdout_show_system': item.stdout}] }}"
  loop: "{{ show_system.results }}"
- debug: var=output
- name: "show system network call to lib "
  show_system_network_summary:
    cli_responses: "{{ output}} "
    output_type: "{{ output_method if output_method is defined else 'json' }}"
  register: show_system_network_summary
- debug: var=show_system_network_summary

Authors

  • Senthil Kumar Ganesan (@skg-net)

© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/dellemc/os10/show_system_network_summary_module.html