Hello All, I am tyring to use filter with Values within Dictionary of the List (FortiOS Facts). Sample Resp onse from FortiGate (Facts)
"results": [ { "policyid": 1, "q_origin_key": 1, "status": "enable", "name": "test-policy01", "uuid": "c4de3298-97ce-51ed-ccba-cafc556ba9e0", "uuid-idx": 14729, "srcintf": [ { "name": "port2", "q_origin_key": "port2" } ], Ansible Filter works fine for the following code - name: To Fetch Existing Firewall Polices Based on Selector firewall_policy fortios_configuration_fact: vdom: "{{ vdom }}" access_token: "{{ fortigate_access_token }}" selector: "firewall_policy" filters: - action=="accept" register: existing_fw_policy_object when: existing_fw_name is defined - name: Display Existing Firewall Policy debug: msg: "{{ existing_fw_policy_object }}" What is the way to filter on srcintf. Wanted to Filter Firewall Policy with port2. -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/d8da86a0-1970-4b18-9732-1b779bc0bc32n%40googlegroups.com.