rgglez / ansible-farm-discover

Perl script that discovers the hosts in a subnet and creates an ansible inventory for them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ansible-farm-discover

License: GPL v3 GitHub all releases GitHub issues GitHub commit activity

This Perl script discovers the hosts in a subnet using nmap, and creates an ansible inventory for them. This can be useful in the case of an autoscaling farm of AWS EC2 or Aliyun ECS instances.

You can modify the name of the output file, and you need to modify the subnetworks to be scanned, by using the --networks and --file parameters:

perl discover.pl --networks="192.168.0.0/24 10.0.1.0/24" --file=farm.yaml

Dependencies

License

Copyright (c) 2023 Rodolfo González González.

Read the LICENSE file.

About

Perl script that discovers the hosts in a subnet and creates an ansible inventory for them.

License:GNU General Public License v3.0


Languages

Language:Perl 100.0%