summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/expect.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/modules/expect.py')
-rw-r--r--lib/ansible/modules/expect.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ansible/modules/expect.py b/lib/ansible/modules/expect.py
index b8c9aa7ee4..9ca799dac7 100644
--- a/lib/ansible/modules/expect.py
+++ b/lib/ansible/modules/expect.py
@@ -81,6 +81,8 @@ notes:
- The M(ansible.builtin.expect) module is designed for simple scenarios.
For more complex needs, consider the use of expect code with the M(ansible.builtin.shell)
or M(ansible.builtin.script) modules. (An example is part of the M(ansible.builtin.shell) module documentation).
+ - If the command returns non UTF-8 data, it must be encoded to avoid issues. One option is to pipe
+ the output through C(base64).
seealso:
- module: ansible.builtin.script
- module: ansible.builtin.shell