system/ansible/deployment_poc/tasks/netbox_query_site.yml
Georg 7bb88aaa66 Init Ansible NetBox DHCP POC deployment
Signed-off-by: Georg <georg@lysergic.dev>
2022-01-05 23:59:13 +01:00

15 lines
329 B
YAML

---
- 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