-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename 357-aws_s3-add-copy-mode.yml to 359-aws_s3-add-copy-mode.yml
- Loading branch information
Showing
4 changed files
with
28 additions
and
19 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...gs/fragments/357-aws_s3-add-copy-mode.yml → ...gs/fragments/359-aws_s3-add-copy-mode.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
minor_changes: | ||
- aws_s3 - new mode to copy existing on another bucket (https://github.com/ansible-collections/amazon.aws/pull/356). | ||
- aws_s3 - new mode to copy existing on another bucket (https://github.com/ansible-collections/amazon.aws/pull/359). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
- name: delete bucket at the end of Integration tests | ||
block: | ||
- name: list bucket object | ||
aws_s3: | ||
bucket: "{{ item }}" | ||
mode: list | ||
register: objects | ||
ignore_errors: true | ||
|
||
- name: remove objects from bucket | ||
aws_s3: | ||
bucket: "{{ item }}" | ||
mode: delobj | ||
object: "{{ obj }}" | ||
with_items: "{{ objects.s3_keys }}" | ||
loop_control: | ||
loop_var: obj | ||
ignore_errors: true | ||
|
||
- name: delete the bucket | ||
aws_s3: | ||
bucket: "{{ item }}" | ||
mode: delete | ||
ignore_errors: yes |