in case anyone can help here, i ran a simpler play with -vvvv enabled The full traceback is:
File "/tmp/ansible_panos_l3_subinterface_payload_qkpcbcde/ansible_panos_l3_subinterface_payload.zip/ansible/modules/panos_l3_subinterface.py", line 273, in main
File "/usr/local/lib/python3.6/site-packages/pandevice/network.py", line 325, in set_zone
update, running_config, return_type, False, mode=mode)
File "/usr/local/lib/python3.6/site-packages/pandevice/base.py", line 1522, in _set_reference
obj.update(reference_var)
File "/usr/local/lib/python3.6/site-packages/pandevice/base.py", line 633, in update
retry_on_peer=self.HA_SYNC)
File "/usr/local/lib/python3.6/site-packages/pandevice/base.py", line 3486, in method
raise the_exception
fatal: [my-panorama]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"adjust_tcp_mss": null,
"api_key": null,
"comment": null,
"create_default_route": false,
"dhcp_default_route_metric": null,
"enable_dhcp": false,
"ip": [
"10.11.1.1/24"
],
"ip_address": null,
"ipv4_mss_adjust": null,
"ipv6_enabled": null,
"ipv6_mss_adjust": null,
"management_profile": null,
"mtu": null,
"name": "ae2.1200",
"netflow_profile": null,
"password": null,
"port": 443,
"provider": {
"api_key": null,
"ip_address": "vic-panora-lpr1",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"port": 443,
"serial_number": null,
"username": "ansible-play"
},
"state": "present",
"tag": 1200,
"template": "xxx-KAM-SRV-FW",
"username": "admin",
"vr_name": "default",
"vsys": null,
"zone_name": "TEST3"
}
},
"msg": "Failed setref: TEST3 -> network -> layer3 'ae2.1200' is not a valid reference\n TEST3 -> network -> layer this was the play: - name: adds security zones, interfaces and firewall rules
hosts: my-panorama
connection: local
gather_facts: False
vars_files:
- 'build-vlan.yml'
- 'firewall-rules.yml'
- 'my-secrets.yml'
#- 'ios.yml'
#{{ item.patunnel_name }}
# -e 'ansible_python_interpreter=/usr/bin/python3'
roles:
- role: PaloAltoNetworks.paloaltonetworks
tasks:
- name: make Interfaces in Test-Template
panos_l3_subinterface:
provider: '{{ PANO_Provider }}'
enable_dhcp: no
name: "ae2.1200"
tag: 1200
zone_name: TEST3
ip: ["10.11.1.1/24"]
template: xxx-KAM-SRV-FW
... View more