cpanm

Collection: community.general

Full Name: parallax.community.general.cpanm

Aliases: community.general.cpanm, cpanm

Synopsis

Manage cpanm

Parameters

NameTypeRequiredDefaultDescription
namestringThe Perl module name to install (e.g. File::Basename)
notestboolfalseDo not run unit tests
mirrorstringSpecifies the base URL for the CPAN mirror to use
from_pathstringThe local directory from which to install the module
locallibstringSpecify the install base to modules
mirror_onlyboolfalseUse the mirror’s index instead of the CPAN Meta DB
installdepsboolfalseOnly install dependencies
executablestringcpanmOverride the path to the cpanm executable
versionstringMinimum version of perl module to consider acceptable
system_libboolfalseUse the system library path for module installation

Example

- name: Example cpanm task
  cpanm:
    name: <your_name>
    notest: false