diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 3be407fe70..938595c560 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -1039,7 +1039,7 @@ class AnsibleModule(object): if data: if not binary_data: - data += '\\n' + data += '\n' out, err = cmd.communicate(input=data) rc = cmd.returncode except (OSError, IOError), e: