ansible / ansible.builtin / v2.3.3.0-1 / module / panos_service create a service object | "added in version" 2.3 of ansible.builtin" Authors: Luigi Mori (@jtschichold), Ivan Bojer (@ivanbojer) preview | supported by communityansible.builtin.panos_service (v2.3.3.0-1) — module
pip
Install with pip install ansible==2.3.3.0.post1
Create a service object. Service objects are fundamental representation of the applications given src/dst ports and protocol
# 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"
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