From b486feaaf41353e6df0bbfafa31a66f3a42de4f9 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 11 Mar 2021 15:28:47 -0500 Subject: document slurp returns (#73865) * no path on return --- lib/ansible/modules/slurp.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/slurp.py b/lib/ansible/modules/slurp.py index 919c79ccce..a216b65145 100644 --- a/lib/ansible/modules/slurp.py +++ b/lib/ansible/modules/slurp.py @@ -58,7 +58,23 @@ EXAMPLES = r''' # 2179 ''' -RETURN = r'''#''' +RETURN = r''' +content: + description: Encoded file content + returned: success + type: str + sample: "MjE3OQo=" +encoding: + description: Type of encoding used for file + returned: success + type: str + sample: "base64" +source: + description: Actual path of file slurped + returned: success + type: str + sample: "/var/run/sshd.pid" +''' import base64 import os -- cgit v1.2.3