Debian Codegraph @

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

raw
1 # Test downloading a file before unarchiving it
2 - name: create our unarchive destination
3 file:
4 path: '{{remote_tmp_dir}}/test-unarchive-tar-gz'
5 state: directory
6
7 - name: Test TLS download
8 block:
9 - name: unarchive a tar from an URL
10 unarchive:
11 src: "https://ci-files.testing.ansible.com/test/integration/targets/apt/echo-hello-source.tar.gz"
12 dest: "{{ remote_tmp_dir }}/test-unarchive-tar-gz"
13 mode: "0700"
14 remote_src: yes
15 register: unarchive13
16 - name: Test that unarchive succeeded
17 assert:
18 that:
19 - "unarchive13.changed == true"
20 always:
21 - name: remove our tar.gz unarchive destination
22 file:
23 path: '{{ remote_tmp_dir }}/test-unarchive-tar-gz'
24 state: absent