syncthing_folder: Accept file-system watcher flag
Accept the `fs_watcher` flag matching the `folder.fsWatcherEnabled` attribute.
This commit is contained in:
parent
866f329f47
commit
8fee0cb114
|
@ -39,6 +39,10 @@ options:
|
|||
description:
|
||||
- List of devices to share folder with
|
||||
required: false
|
||||
fs_watcher:
|
||||
description:
|
||||
- Whether to activate the file-system watcher.
|
||||
default: true
|
||||
ignore_perms:
|
||||
description:
|
||||
- Whether to ignore permissions when looking for changes.
|
||||
|
@ -173,7 +177,7 @@ def create_folder(params):
|
|||
'disableTempIndexes': False,
|
||||
'filesystemType': 'basic',
|
||||
'fsWatcherDelayS': 10,
|
||||
'fsWatcherEnabled': True,
|
||||
'fsWatcherEnabled': params['fs_watcher'],
|
||||
'hashers': 0,
|
||||
'id': params['id'],
|
||||
'ignoreDelete': False,
|
||||
|
@ -218,6 +222,7 @@ def run_module():
|
|||
label=dict(type='str', required=False),
|
||||
path=dict(type='path', required=False),
|
||||
devices=dict(type='list', required=False, default=False),
|
||||
fs_watcher=dict(type='bool', default=True),
|
||||
ignore_perms=dict(type='bool', required=False, default=False),
|
||||
type=dict(type='str', default='sendreceive',
|
||||
choices=['sendreceive', 'sendonly', 'receiveonly']),
|
||||
|
|
Loading…
Reference in New Issue
Block a user