Skip to content

rgglez/ansible-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

ansible-scripts

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

Miscelaneous scripts for Ansible.

Scripts

  • discover.pl

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

License

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

Licensed under GPL v3. Read the LICENSE file.

Releases

No releases published

Packages

No packages published

Languages