Debian Codegraph @

ansible_collections/cisco/meraki/playbooks/Get_AP_Serials.yaml

raw symbols SCIP
1 - name: Play Name
2 hosts: localhost
3 vars:
4 org_id: XXXXXXXX
5 gather_facts: false
6 tasks:
7 - name: Get all organizations _devices
8 cisco.meraki.organizations_devices_info:
9 meraki_suppress_logging: true
10 organizationId: "{{ org_id }}"
11 total_pages: -1
12 register: result
13 - name: Filter APs with "wireless" productTypes and get Serial Number
14 ansible.builtin.set_fact:
15 filtered_aps:
16 "{{ result.meraki_response | selectattr('productType', 'contains',
17 'wireless') | map(attribute='serial') | list }}"
18 register: aps
19 - name: Show All Devices
20 ansible.builtin.debug:
21 msg: "{{ aps }}"