ansible / ansible.builtin / v2.7.18 / module / pn_show Run show commands on nvOS device. | "added in version" 2.2 of ansible.builtin" Authors: Pluribus Networks (@amitsi) preview | supported by communityansible.builtin.pn_show (v2.7.18) — module
pip
Install with pip install ansible==2.7.18
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: 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