Debian Codegraph @

test/integration/targets/unarchive/tasks/test_different_language_var.yml

raw
1 - name: test non-ascii with different LANGUAGE
2 when: ansible_os_family == 'Debian'
3 block:
4 - name: install fr language pack on Ubuntu
5 apt:
6 name: language-pack-fr
7 state: present
8 when: ansible_facts.distribution == 'Ubuntu'
9
10 - name: create our unarchive destination
11 file:
12 path: "{{ remote_tmp_dir }}/test-unarchive-nonascii-くらとみ-tar-gz"
13 state: directory
14
15 - name: test that unarchive works with an archive that contains non-ascii filenames
16 unarchive:
17 # Both the filename of the tarball and the filename inside the tarball have
18 # nonascii chars
19 src: "test-unarchive-nonascii-くらとみ.tar.gz"
20 dest: "{{ remote_tmp_dir }}/test-unarchive-nonascii-くらとみ-tar-gz"
21 mode: "u+rwX,go+rX"
22 remote_src: no
23 register: nonascii_result0
24
25 - name: Check that file is really there
26 stat:
27 path: "{{ remote_tmp_dir }}/test-unarchive-nonascii-くらとみ-tar-gz/storage/àâæçéèïîôœ(copy)!@#$%^&-().jpg"
28 register: nonascii_stat0
29
30 - name: Assert that nonascii tests succeeded
31 assert:
32 that:
33 - "nonascii_result0.changed == true"
34 - "nonascii_stat0.stat.exists == true"
35
36 - name: remove nonascii test
37 file:
38 path: "{{ remote_tmp_dir }}/test-unarchive-nonascii-くらとみ-tar-gz"
39 state: absent
40
41 environment:
42 LANGUAGE: fr_FR:fr