gen-IPs gen-IPs for ansible For example, you want gen IPs range from "192.168.1.0" to "192.168.1.50", call function PrintIps("192.168.1.",0,50) and a file named ips.txt will generated and include IPs you want.