15 lines
370 B
YAML
15 lines
370 B
YAML
---
|
|
- name: Query prefix
|
|
ansible.builtin.uri:
|
|
url: "{{ endpoint }}/ipam/prefixes/?site_id={{ site_id }}&tenant={{ tenant }}&limit=1"
|
|
client_cert: "{{ cert }}"
|
|
client_key: "{{ key }}"
|
|
method: GET
|
|
return_content: yes
|
|
headers:
|
|
Accept: application/json
|
|
Authorization: "Token {{ token }}"
|
|
register: nb_prefix
|
|
delegate_to: localhost
|
|
|