Skip to content

Commit 2aa8f62

Browse files
authored
Create example_lookup_policy.yml
1 parent 0171378 commit 2aa8f62

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

example_lookup_policy.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
- hosts: all
3+
connection: local
4+
gather_facts: true
5+
name: Example Policy Lookup Playbook
6+
7+
vars:
8+
provider:
9+
ip_address: "{{ ansible_host }}"
10+
username: "{{ lookup('env', 'ANSIBLE_NET_USERNAME') }}"
11+
password: "{{ lookup('env', 'ANSIBLE_NET_PASSWORD') }}"
12+
13+
roles:
14+
- lookup_policy
15+
16+
tasks:
17+
- name: Print the results
18+
ansible.builtin.debug:
19+
msg: "{{ lookup_policy_security_policy_match_result | paloaltonetworks.panos_policy_automation.panos_op_stdout_to_dict }}"

0 commit comments

Comments
 (0)