Debian Codegraph @

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

raw
1 - name: create our tar unarchive destination
2 file:
3 path: '{{remote_tmp_dir}}/test-unarchive-tar'
4 state: directory
5
6 - name: unarchive a tar file
7 unarchive:
8 src: '{{remote_tmp_dir}}/test-unarchive.tar'
9 dest: '{{remote_tmp_dir}}/test-unarchive-tar'
10 remote_src: yes
11 register: unarchive01
12
13 - name: verify that the file was marked as changed
14 assert:
15 that:
16 - "unarchive01.changed == true"
17
18 - name: verify that the file was unarchived
19 file:
20 path: '{{remote_tmp_dir}}/test-unarchive-tar/foo-unarchive.txt'
21 state: file
22
23 - name: remove our tar unarchive destination
24 file:
25 path: '{{remote_tmp_dir}}/test-unarchive-tar'
26 state: absent
27
28 - name: test owner/group perms
29 include_tasks: test_owner_group.yml
30 vars:
31 ext: tar
32 archive: test-unarchive.tar
33 testfile: foo-unarchive.txt