ansible.builtin.panos_service (v2.3.3.0-1) — module

create a service object

| "added in version" 2.3 of ansible.builtin"

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

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.3.3.0.post1

Description

Create a service object. Service objects are fundamental representation of the applications given src/dst ports and protocol


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Creates service for port 22
  - name: create SSH service
    panos_service:
      ip_address: "192.168.1.1"
      password: "admin"
      service_name: "service-tcp-22"
      protocol: "tcp"
      port: "22"

Inputs

    
port:
    description:
    - destination port
    required: true

commit:
    default: true
    description:
    - commit if changed
    required: false

password:
    description:
    - password for authentication
    required: true

protocol:
    description:
    - protocol for the service, should be tcp or udp
    required: true

username:
    default: admin
    description:
    - username for authentication
    required: false

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

source_port:
    default: None
    description:
    - source port
    required: false

service_name:
    description:
    - name of the service
    required: true