feat(agent): Fetch subnets belonging to agent

the agent is the agent ID of the agent code.

!1
This commit is contained in:
2024-02-19 03:44:35 +09:30
parent 225fbe51c8
commit 3f7e8051a0

View File

@ -5,3 +5,11 @@
cmd: nmap -sn "{{ subnet.address }}" -oX -
become: true
register: nmap_scan
- name: Get subnets Address'
ansible.builtin.include_tasks:
file: tasks/api_call.yaml
vars:
api_client_name: "{{ client_name }}"
api_token: "{{ client_token }}"
api_path: "{{ api_address }}"
api_query_string: "filter_by=subnetId&filter_value={{ subnet.id }}"