DOKK / manpages / debian 12 / rex / Rex::Group::Lookup::File.3pm.en
Rex::Group::Lookup::File(3pm) User Contributed Perl Documentation Rex::Group::Lookup::File(3pm)

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");
2023-03-06 perl v5.36.0