Rex::Group::Lookup::Command - read hostnames from a command.
With this module you can define hostgroups out of a command.
use Rex::Group::Lookup::Command; group "dbserver" => lookup_command("cat ip.list | grep -v -E '^#'"); rex xxxx # dbserver
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.