diff options
author | Georg | 2022-01-05 23:59:13 +0100 |
---|---|---|
committer | Georg | 2022-01-05 23:59:13 +0100 |
commit | 7bb88aaa661dc6756e862562c47368de11657f44 (patch) | |
tree | 545d6f1d86c1d42ed04d558450996c54fdca631d /ansible/deployment_poc/tasks/netbox_query_ip.yml | |
parent | 0e53f4d766e95205b20951fd252f6118ce05352b (diff) | |
download | system-7bb88aaa661dc6756e862562c47368de11657f44.tar.gz system-7bb88aaa661dc6756e862562c47368de11657f44.tar.bz2 system-7bb88aaa661dc6756e862562c47368de11657f44.zip |
Init Ansible NetBox DHCP POC deployment
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'ansible/deployment_poc/tasks/netbox_query_ip.yml')
-rw-r--r-- | ansible/deployment_poc/tasks/netbox_query_ip.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ansible/deployment_poc/tasks/netbox_query_ip.yml b/ansible/deployment_poc/tasks/netbox_query_ip.yml new file mode 100644 index 0000000..f0ed7b7 --- /dev/null +++ b/ansible/deployment_poc/tasks/netbox_query_ip.yml @@ -0,0 +1,14 @@ +--- +- name: Query available address + ansible.builtin.uri: + url: "{{ endpoint }}/ipam/prefixes/{{ prefix_id }}/available-ips/?limit=1" + client_cert: "{{ cert }}" + client_key: "{{ key }}" + method: GET + return_content: yes + headers: + Accept: application/json + Authorization: "Token {{ token }}" + register: nb_ip + delegate_to: localhost + |