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:
|
description:
|
||||||
- List of devices to share folder with
|
- List of devices to share folder with
|
||||||
required: false
|
required: false
|
||||||
|
fs_watcher:
|
||||||
|
description:
|
||||||
|
- Whether to activate the file-system watcher.
|
||||||
|
default: true
|
||||||
ignore_perms:
|
ignore_perms:
|
||||||
description:
|
description:
|
||||||
- Whether to ignore permissions when looking for changes.
|
- Whether to ignore permissions when looking for changes.
|
||||||
|
@ -173,7 +177,7 @@ def create_folder(params):
|
||||||
'disableTempIndexes': False,
|
'disableTempIndexes': False,
|
||||||
'filesystemType': 'basic',
|
'filesystemType': 'basic',
|
||||||
'fsWatcherDelayS': 10,
|
'fsWatcherDelayS': 10,
|
||||||
'fsWatcherEnabled': True,
|
'fsWatcherEnabled': params['fs_watcher'],
|
||||||
'hashers': 0,
|
'hashers': 0,
|
||||||
'id': params['id'],
|
'id': params['id'],
|
||||||
'ignoreDelete': False,
|
'ignoreDelete': False,
|
||||||
|
@ -218,6 +222,7 @@ def run_module():
|
||||||
label=dict(type='str', required=False),
|
label=dict(type='str', required=False),
|
||||||
path=dict(type='path', required=False),
|
path=dict(type='path', required=False),
|
||||||
devices=dict(type='list', required=False, default=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),
|
ignore_perms=dict(type='bool', required=False, default=False),
|
||||||
type=dict(type='str', default='sendreceive',
|
type=dict(type='str', default='sendreceive',
|
||||||
choices=['sendreceive', 'sendonly', 'receiveonly']),
|
choices=['sendreceive', 'sendonly', 'receiveonly']),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user