mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-07-03 00:58:53 +00:00
File module - fix unicode paths and add a test (#57558)
* File module - Fix unicode paths * Add a test for unicode paths for the file module
This commit is contained in:
parent
93a85b6c86
commit
cd77ea3c7f
3 changed files with 18 additions and 1 deletions
10
test/integration/targets/file/tasks/unicode_path.yml
Normal file
10
test/integration/targets/file/tasks/unicode_path.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
- name: create local file with unicode filename and content
|
||||
lineinfile:
|
||||
dest: "{{ output_dir }}/语/汉语.txt"
|
||||
create: true
|
||||
line: 汉语
|
||||
|
||||
- name: remove local file with unicode filename and content
|
||||
file:
|
||||
path: "{{ output_dir }}/语/汉语.txt"
|
||||
state: absent
|
||||
Loading…
Add table
Add a link
Reference in a new issue