18 lines
366 B
YAML
18 lines
366 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
|
|
tags:
|
|
- init_dp
|
|
- init_ssh
|
|
|