feat(agent): Scan subnet

!1
This commit is contained in:
2024-02-19 03:43:35 +09:30
parent 805c50cd7e
commit 225fbe51c8
2 changed files with 16 additions and 0 deletions

View File

@ -19,6 +19,15 @@
ansible.builtin.include_tasks:
file: tasks/subnets.yaml
- name: Scan Subnet
ansible.builtin.include_tasks:
file: tasks/scan_subnet.yaml
loop: "{{ nfc_c_scan_agent_subnets }}"
loop_control:
loop_var: subnet
vars: # ToDo: remove the below t4est vars
api_subnets: subnets
api_scanagents: tools/scanagents

View File

@ -0,0 +1,7 @@
---
- name: Scan subnet
ansible.builtin.command:
cmd: nmap -sn "{{ subnet.address }}" -oX -
become: true
register: nmap_scan