ansible/test/integration/targets/scaleway_s3/tasks/aws_s3_get.yml
Matt Clay 149336319a
Clean up local_action and delegate_to in tests. (#55835)
* Remove unnecessary delegate_to in tests.

* Remove incorrect delegate_to in tests.

* Remove unnecessary use of local_action in tests.

* Remove incorrect use of local_action in tests.

* Remove unnecessary use of local_action in tests.

* Remove incorrect use of local_action in tests.

* Remove unnecessary use of local_action in tests.

* Use delegate_to instead of local_action in tests.

* Use setup_remote_tmp_dir instead of TMPDIR.
2019-04-26 17:33:59 -07:00

30 lines
549 B
YAML

- name: Create a destination file
tempfile:
state: file
suffix: temp
register: tempfile_dst
- name: Get from bucket
aws_s3:
mode: get
bucket: '{{ bucket_name }}'
s3_url: '{{ s3_url }}'
region: '{{ scaleway_region }}'
object: test.txt
dest: '{{ tempfile_dst.path }}'
encrypt: false
register: get_task
- name: Show get_task
debug:
var: get_task
- name: get_task is success
assert:
that:
- get_task is success
- name: get_task is changed
assert:
that:
- get_task is changed