diff options
author | Dusty Mabe <dusty@dustymabe.com> | 2016-08-19 09:16:21 -0400 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2016-08-19 08:16:21 -0500 |
commit | b817f1f3eab084bd1427b5c0b0ce454ff807ecf2 (patch) | |
tree | a915565f996dd4a6d1c9bd1d9c0f3b07627640c2 /test/integration | |
parent | c5b5a20031871e2a40fb4cbbc9fb5b04f497c400 (diff) | |
download | ansible-b817f1f3eab084bd1427b5c0b0ce454ff807ecf2.tar.gz |
actions/unarchive: fix unarchive from remote url (#17126)
* actions/unarchive: fix unarchive from remote url
Currently unarchive from remote url does not work because the core
unarchive module was updated to support 'remote_src' [1], but the
unarchive action plugin was not updated for this. This causes failures
because the action plugin assumes it needs to copy a file to the
remote server, but in the case of downloading a file from a remote
url a local file does not exist, so an error occurs when the file is
not found.
[1] https://github.com/ansible/ansible-modules-core/commit/467516e
* test_unarchive: fix test with wrong remote_src use
The non-ascii filenames test had improperly set remote_src=yes even
though it was actually copying the file from the local machine (i.e.
the file did not already exist remotely). This test was passing
until the remote_src behavior of unarchive was fixed in 276550f.
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/roles/test_unarchive/tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/roles/test_unarchive/tasks/main.yml b/test/integration/roles/test_unarchive/tasks/main.yml index 34369ab34b..e17e5b2ccb 100644 --- a/test/integration/roles/test_unarchive/tasks/main.yml +++ b/test/integration/roles/test_unarchive/tasks/main.yml @@ -299,7 +299,7 @@ src: "test-unarchive-nonascii-くらとみ.tar.gz" dest: "{{ output_dir }}/test-unarchive-nonascii-くらとみ-tar-gz" mode: "u+rwX,go+rX" - remote_src: yes + remote_src: no register: nonascii_result0 - name: Check that file is really there |