ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
836 stars 1.53k forks source link

Adding additional flags to the nmap inventory #5567

Open dstuart opened 2 years ago

dstuart commented 2 years ago

Summary

As some machines aren't as visible to standard scans. Adding a few more options to the tool box to grab all the machines on the network

Issue Type

Feature Idea

Component Name

nmap.py

Additional Information


plugin: community.general.nmap address: 192.168.1,2,3,4.0/24 strict: no ipv4: yes ports: yes cache: no sudo: yes cache_connection: './cache/ansible_inventory_cache' cache_timeout: 86400 icmp_timestamp: yes dns_resolve: yes udp_scan: yes groups: subnet1_vm: "'.1.' in ip" subnet2_vm: "'.2.' in ip" subnet3_vm: "'.3.' in ip" subnet4_vm: "'.4.' in ip"

Code of Conduct

dstuart commented 2 years ago

Pull request attached https://github.com/ansible-collections/community.general/pull/5566