summaryrefslogtreecommitdiffstats
path: root/ansible/deployment_poc/tasks/netbox_query_prefix.yml
blob: 6a99d6770e2f11ee612402e3af5f74609d01daf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- 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
  tags:
    - init_dp
    - init_ssh