1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add proper type to cpanm arguments

from_path, locallib, executable should be path to benefits
from path expansion for ~user.
This commit is contained in:
Michael Scherer 2016-03-26 09:19:47 +01:00 committed by Matt Clay
parent 432a9a31ca
commit f47a756c46

View file

@ -170,15 +170,15 @@ def _get_cpanm_path(module):
def main():
arg_spec = dict(
name=dict(default=None, required=False, aliases=['pkg']),
from_path=dict(default=None, required=False),
from_path=dict(default=None, required=False, type='path'),
notest=dict(default=False, type='bool'),
locallib=dict(default=None, required=False),
locallib=dict(default=None, required=False, type='path'),
mirror=dict(default=None, required=False),
mirror_only=dict(default=False, type='bool'),
installdeps=dict(default=False, type='bool'),
system_lib=dict(default=False, type='bool', aliases=['use_sudo']),
version=dict(default=None, required=False),
executable=dict(required=False, type='str'),
executable=dict(required=False, type='path'),
)
module = AnsibleModule(