From 78eb1641ec5a9e902300db200dbc50430d90623f Mon Sep 17 00:00:00 2001 From: Swapnil Date: Wed, 8 May 2024 01:28:49 +0530 Subject: [PATCH] update docs --- collection/plugins/modules/folder.py | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/collection/plugins/modules/folder.py b/collection/plugins/modules/folder.py index 0200211..d7fbcf3 100644 --- a/collection/plugins/modules/folder.py +++ b/collection/plugins/modules/folder.py @@ -37,7 +37,7 @@ options: required: false devices: description: - - List of devices to share folder with + - List of device ids to share folder with. Always share with self. required: false fs_watcher: description: @@ -65,12 +65,20 @@ author: EXAMPLES = ''' # Add a folder to synchronize with another device -- name: Add syncthing folder - community.syncthing.folder: - id: box - path: ~/box - devices: - - 1234-1234-1234-1234 + - name: Create folder + become: yes + become_user: syncthing + community.syncthing.folder: + host: http://localhost + unix_socket: /run/syncthing/syncthing.sock + config_file: /var/lib/syncthing/.config/syncthing/config.xml + id: 'my-folder-1' + label: 'my folder 1' + path: '/root/test-folder-1' + devices: + - '1234-1234-1234' + - '5678-5678-5678' + register: folder ''' RETURN = '''