community / community.network / 0.1.0 / module / pn_show
Removed in 2.12
Reason:Doesn't support latest Pluribus Networks netvisor | Alternative:Latest modules will be pushed in Ansible future versions.
Run show commands on nvOS device.
Authors: Pluribus Networks (@amitsi)
Install with ansible-galaxy collection install community.network:==0.1.0
collections: - name: community.network version: 0.1.0
Execute show command in the nodes and returns the results read from the device.
- name: Run the vlan-show command pn_show: pn_command: 'vlan-show' pn_parameters: id,scope,ports pn_options: 'layout vertical'
- name: Run the vlag-show command pn_show: pn_command: 'vlag-show' pn_parameters: 'id,name,cluster,mode' pn_options: 'no-show-headers'
- name: Run the cluster-show command pn_show: pn_command: 'cluster-show'
pn_command: description: - The C(pn_command) takes a CLI show command as value. required: true pn_options: description: - Specify formatting options. pn_cliswitch: description: - Target switch(es) to run the cli on. required: false pn_parameters: default: all description: - Display output using a specific parameter. Use 'all' to display possible output. List of comma separated parameters. pn_clipassword: description: - Provide login password if user is not root. required: false pn_cliusername: description: - Provide login username if user is not root. required: false
changed: description: Indicates whether the CLI caused any change on the target. returned: always(False) type: bool command: description: The CLI command run on the target node(s). returned: always type: str stderr: description: The set of error responses from the show command. returned: on error type: list stdout: description: The set of responses from the show command. returned: always type: list