Rex::Group::Lookup::File - read hostnames from a file.
With this module you can define hostgroups out of a file.
use Rex::Group::Lookup::File; group "webserver" => lookup_file("./hosts.lst");
With this function you can read hostnames from a file. Every hostname in one line.
group "webserver" => lookup_file("./webserver.lst"); group "mailserver" => lookup_file("./mailserver.lst");
To install Rex, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rex
CPAN shell
perl -MCPAN -e shell install Rex
For more information on module installation, please visit the detailed CPAN module installation guide.