feat(agent): fetch agent id from agent code

!1
This commit is contained in:
2024-02-19 03:36:36 +09:30
parent 6ce64d6d69
commit eb242f77ce
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,10 @@
---
- name: Get My ScanAgent ID
ansible.builtin.include_tasks:
file: tasks/api_call.yaml
vars:
api_client_name: "{{ client_name }}"
api_token: "{{ client_token }}"
api_path: "{{ api_scanagents }}"
api_query_string: "filter_by=code&filter_value={{ scanagent_code }}"