diff options
Diffstat (limited to 'lib/ansible/modules/tempfile.py')
-rw-r--r-- | lib/ansible/modules/tempfile.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/ansible/modules/tempfile.py b/lib/ansible/modules/tempfile.py index 10594dec..c5fedabe 100644 --- a/lib/ansible/modules/tempfile.py +++ b/lib/ansible/modules/tempfile.py @@ -14,9 +14,10 @@ module: tempfile version_added: "2.3" short_description: Creates temporary files and directories description: - - 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. + - 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. - For Windows targets, use the M(ansible.windows.win_tempfile) module instead. options: state: @@ -87,7 +88,7 @@ from tempfile import mkstemp, mkdtemp from traceback import format_exc from ansible.module_utils.basic import AnsibleModule -from ansible.module_utils._text import to_native +from ansible.module_utils.common.text.converters import to_native def main(): |