Note
This lookup plugin is part of the cisco.aci collection (version 2.12.0).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install cisco.aci.
To use it in a playbook, specify: cisco.aci.interface_range.
Parameter | Comments |
|---|---|
Terms string / required | comma separated strings of interface ranges |
Note
- name: "loop through range of interfaces"
ansible.builtin.debug:
msg: "{{ item }}"
with_items: "{{ query('cisco.aci.interface_range', '1/1-4,1/20-25', '1/5', '1/2/3/8-10', '5/0-2') }}"
Key | Description |
|---|---|
Return value list / elements=string | list of interfaces Returned: success |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/cisco/aci/interface_range_lookup.html