mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
* Fix async for aws_s3 * Add a test that async is able to be used on aws_s3 tasks
This commit is contained in:
parent
e59742eccd
commit
89cea78e30
3 changed files with 31 additions and 2 deletions
|
@ -79,6 +79,23 @@
|
|||
- result.changed == True
|
||||
- result.msg == "PUT operation complete"
|
||||
|
||||
- name: test using aws_s3 with async
|
||||
aws_s3:
|
||||
bucket: "{{ bucket_name }}"
|
||||
mode: put
|
||||
src: "{{ tmp1.path }}"
|
||||
object: delete.txt
|
||||
<<: *aws_connection_info
|
||||
register: test_async
|
||||
async: 30
|
||||
poll: 0
|
||||
- name: ensure it completed
|
||||
async_status:
|
||||
jid: "{{ test_async.ansible_job_id }}"
|
||||
register: status
|
||||
until: status.finished
|
||||
retries: 10
|
||||
|
||||
- name: check that roles file lookups work as expected
|
||||
aws_s3:
|
||||
bucket: "{{ bucket_name }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue