Debian Codegraph @

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

raw
1 - name: create our unarchive destination
2 file:
3 path: '{{remote_tmp_dir}}/test-unarchive-tar-gz'
4 state: directory
5
6 - name: create a directory with quotable chars
7 file:
8 path: '{{ remote_tmp_dir }}/test-quotes~root'
9 state: directory
10
11 - name: unarchive into directory with quotable chars
12 unarchive:
13 src: "{{ remote_tmp_dir }}/test-unarchive.tar.gz"
14 dest: "{{ remote_tmp_dir }}/test-quotes~root"
15 remote_src: yes
16 register: unarchive08
17
18 - name: Test that unarchive succeeded
19 assert:
20 that:
21 - "unarchive08.changed == true"
22
23 - name: unarchive into directory with quotable chars a second time
24 unarchive:
25 src: "{{ remote_tmp_dir }}/test-unarchive.tar.gz"
26 dest: "{{ remote_tmp_dir }}/test-quotes~root"
27 remote_src: yes
28 register: unarchive09
29
30 - name: Test that unarchive did nothing
31 assert:
32 that:
33 - "unarchive09.changed == false"
34
35 - name: remove quotable chars test
36 file:
37 path: '{{ remote_tmp_dir }}/test-quotes~root'
38 state: absent