mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Set some module parameters to type=path
This commit is contained in:
parent
cea1125d02
commit
ecafdeeaa5
2 changed files with 9 additions and 10 deletions
|
@ -257,18 +257,18 @@ def main():
|
|||
module = AnsibleModule(
|
||||
# not checking because of daisy chain to file module
|
||||
argument_spec = dict(
|
||||
src = dict(required=True),
|
||||
original_basename = dict(required=False), # used to handle 'dest is a directory' via template, a slight hack
|
||||
dest = dict(required=True),
|
||||
src = dict(required=True, type='path'),
|
||||
original_basename = dict(required=False, type='str'), # used to handle 'dest is a directory' via template, a slight hack
|
||||
dest = dict(required=True, type='path'),
|
||||
copy = dict(default=True, type='bool'),
|
||||
creates = dict(required=False),
|
||||
creates = dict(required=False, type='path'),
|
||||
list_files = dict(required=False, default=False, type='bool'),
|
||||
),
|
||||
add_file_common_args=True,
|
||||
)
|
||||
|
||||
src = os.path.expanduser(module.params['src'])
|
||||
dest = os.path.expanduser(module.params['dest'])
|
||||
src = module.params['src']
|
||||
dest = module.params['dest']
|
||||
copy = module.params['copy']
|
||||
file_args = module.load_file_common_arguments(module.params)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue