feat(scanner): customizable phpIPAM api url

!1
This commit is contained in:
2024-02-21 00:21:33 +09:30
parent a2ab1c2c61
commit 4870e32970
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@
ansible.builtin.assert: ansible.builtin.assert:
that: that:
- api_url is defined - api_url is defined
- api_url != ''
msg: "missing Required Variables" msg: "missing Required Variables"

View File

@ -62,7 +62,7 @@
{%- endif %} {%- endif %}
ansible.builtin.uri: ansible.builtin.uri:
url: >- url: >-
https://phpipam.local/api/{{ api_client_name }}/{{ api_path }} {{ api_url }}/api/{{ api_client_name }}/{{ api_path }}
{%- if api_query_string is defined -%} {%- if api_query_string is defined -%}
/?{{ api_query_string }} /?{{ api_query_string }}
{%- endif %} {%- endif %}