diff options
Diffstat (limited to 'lib/ansible/modules/tempfile.py')
-rw-r--r-- | lib/ansible/modules/tempfile.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/ansible/modules/tempfile.py b/lib/ansible/modules/tempfile.py index c5fedabe..10594dec 100644 --- a/lib/ansible/modules/tempfile.py +++ b/lib/ansible/modules/tempfile.py @@ -14,10 +14,9 @@ module: tempfile version_added: "2.3" short_description: Creates temporary files and directories description: - - The M(ansible.builtin.tempfile) module creates temporary files and directories. C(mktemp) command - takes different parameters on various systems, this module helps to avoid troubles related to that. - Files/directories created by module are accessible only by creator. In case you need to make them - world-accessible you need to use M(ansible.builtin.file) module. + - The C(tempfile) module creates temporary files and directories. C(mktemp) command takes different parameters on various systems, this module helps + to avoid troubles related to that. Files/directories created by module are accessible only by creator. In case you need to make them world-accessible + you need to use M(ansible.builtin.file) module. - For Windows targets, use the M(ansible.windows.win_tempfile) module instead. options: state: @@ -88,7 +87,7 @@ from tempfile import mkstemp, mkdtemp from traceback import format_exc from ansible.module_utils.basic import AnsibleModule -from ansible.module_utils.common.text.converters import to_native +from ansible.module_utils._text import to_native def main(): |