Deprecated

Removed in 2.0.0

i

Reason:Consolidating code base. | Alternative:Use U(https://galaxy.ansible.com/PaloAltoNetworks/paloaltonetworks) instead.

community.network.panos_check (1.3.7) — module

check if PAN-OS device is ready for configuration

Authors: Luigi Mori (@jtschichold), Ivan Bojer (@ivanbojer)

Install collection

Install with ansible-galaxy collection install community.network:==1.3.7


Add to requirements.yml

  collections:
    - name: community.network
      version: 1.3.7

Description

Check if PAN-OS device is ready for being configured (no pending jobs).

The check could be done once or multiple times until the device is ready.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# single check on 192.168.1.1 with credentials admin/admin
- name: Check if ready
  community.network.panos_check:
    ip_address: "192.168.1.1"
    password: "admin"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# check for 10 times, every 30 seconds, if device 192.168.1.1
# is ready, using credentials admin/admin
- name: Wait for reboot
  community.network.panos_check:
    ip_address: "192.168.1.1"
    password: "admin"
  register: result
  until: result is not failed
  retries: 10
  delay: 30

Inputs

    
timeout:
    default: 0
    description:
    - timeout of API calls
    required: false

interval:
    default: 0
    description:
    - time waited between checks
    required: false

password:
    description:
    - Password for authentication.
    required: true
    type: str

username:
    default: admin
    description:
    - Username for authentication.
    type: str

ip_address:
    description:
    - IP address (or hostname) of PAN-OS device.
    required: true
    type: str