Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (30 sloc) 914 Bytes
- name: Add some objects to the firewall
hosts: my-firewall
connection: local
gather_facts: False
roles:
- role: PaloAltoNetworks.paloaltonetworks
tasks:
- name: Grab the credentials from ansible-vault
include_vars: 'firewall-secrets.yml'
no_log: 'yes'
- name: Add a tag to the firewall
panos_object:
ip_address: '{{ ip_address }}'
username: '{{ username }}'
password: '{{ password }}'
tag_name: 'Test'
color: 'orange'
description: 'This is test tag'
operation: 'add'
- name: Add an address object to the firewall
panos_object:
ip_address: '{{ ip_address }}'
username: '{{ username }}'
password: '{{ password }}'
addressobject: 'test-address'
address: '192.168.100.89/24'
address_type: 'ip-netmask'
tag_name: 'Test'
description: 'This is a test address object'
operation: 'add'
You can’t perform that action at this time.