summaryrefslogtreecommitdiffstats
path: root/ansible/deployment_poc/tasks/netbox_query_site.yml
blob: 5894a6c0194a0402dde0a5d107e51de8290840b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- name: Query site
  ansible.builtin.uri:
    url: "{{ endpoint }}/dcim/sites/?slug={{ site }}"
    client_cert: "{{ cert }}"
    client_key: "{{ key }}"
    method: GET
    return_content: yes
    headers:
      Accept: application/json
      Authorization: "Token {{ token }}"
  register: nb_site
  delegate_to: localhost