https://github.com/rgglez/ansible-scripts
Misc. scripts for Ansible
https://github.com/rgglez/ansible-scripts
ansible devops-tools farm network-analysis perl sysadmin sysadmin-scripts
Last synced: 4 months ago
JSON representation
Misc. scripts for Ansible
- Host: GitHub
- URL: https://github.com/rgglez/ansible-scripts
- Owner: rgglez
- License: gpl-3.0
- Created: 2023-03-21T17:53:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-08-04T17:35:26.000Z (5 months ago)
- Last Synced: 2025-08-04T20:51:30.102Z (5 months ago)
- Topics: ansible, devops-tools, farm, network-analysis, perl, sysadmin, sysadmin-scripts
- Language: Perl
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-scripts
[](https://www.gnu.org/licenses/gpl-3.0)



Miscelaneous scripts for [Ansible](https://docs.ansible.com/ansible/latest/index.html).
## Scripts
* ```discover.pl```
This Perl script discovers the hosts in a subnet using [nmap](https://nmap.org/), 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:
```bash
perl discover.pl --networks="192.168.0.0/24 10.0.1.0/24" --file=farm.yaml
```
* Dependencies
* [Getopt::Long](https://perldoc.perl.org/Getopt::Long)
* [nmap](https://nmap.org/)
## License
Copyright (c) 2023 Rodolfo González González.
Licensed under [GPL v3](https://www.gnu.org/licenses/gpl-3.0.en.html). Read the [LICENSE](LICENSE) file.