W3cubDocs

/Ansible 2.10

community.network.panos_op – execute arbitrary OP commands on PANW devices (e.g. show interface all)

Note

This plugin is part of the community.network collection.

To install it use: ansible-galaxy collection install community.network.

To use it in a playbook, specify: community.network.panos_op.

DEPRECATED

Removed in

version 2.0.0

Why

Consolidating code base.

Alternative

Use https://galaxy.ansible.com/PaloAltoNetworks/paloaltonetworks instead.

Synopsis

  • This module will allow user to pass and execute any supported OP command on the PANW device.

Requirements

The below requirements are needed on the host that executes this module.

Parameters

Parameter Choices/Defaults Comments
api_key
string
API key that can be used instead of username/password credentials.
cmd
string / required
The OP command to be performed.
ip_address
string / required
IP address (or hostname) of PAN-OS device or Panorama management console being configured.
password
string / required
Password credentials to use for authentication.
username
string
Default:
"admin"
Username credentials to use for authentication.

Notes

Note

  • Checkmode is NOT supported.
  • Panorama is NOT supported.

Examples

- name: Show list of all interfaces
  community.network.panos_op:
    ip_address: '{{ ip_address }}'
    username: '{{ username }}'
    password: '{{ password }}'
    cmd: 'show interfaces all'

- name: Show system info
  community.network.panos_op:
    ip_address: '{{ ip_address }}'
    username: '{{ username }}'
    password: '{{ password }}'
    cmd: 'show system info'

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description
stdout
string
success
output of the given OP command as JSON formatted string

Sample:
{system: {app-release-date: 2017/05/01 15:09:12}}
stdout_xml
string
success
output of the given OP command as JSON formatted string

Sample:
<response status=success><result><system><hostname>fw2</hostname>


Status

  • This module will be removed in version 2.0.0. [deprecated]
  • For more information see DEPRECATED.

Authors

  • Ivan Bojer (@ivanbojer)

© 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/community/network/panos_op_module.html