mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.4 KiB
YAML
74 lines
1.4 KiB
YAML
6 years ago
|
- name: Delete an object (Check)
|
||
|
check_mode: yes
|
||
|
aws_s3:
|
||
|
mode: delobj
|
||
|
bucket: '{{ bucket_name }}'
|
||
|
s3_url: '{{ s3_url }}'
|
||
|
region: '{{ scaleway_region }}'
|
||
|
object: test.txt
|
||
|
encrypt: false
|
||
|
register: delobj_check_task
|
||
|
|
||
|
- name: Show delobj_check_task
|
||
|
debug:
|
||
|
var: delobj_check_task
|
||
|
|
||
|
- name: delobj_check_task is success
|
||
|
assert:
|
||
|
that:
|
||
|
- delobj_check_task is success
|
||
|
|
||
|
- name: delobj_check_task is changed
|
||
|
assert:
|
||
|
that:
|
||
|
- delobj_check_task is changed
|
||
|
|
||
|
- name: Delete an object
|
||
|
aws_s3:
|
||
|
mode: delobj
|
||
|
bucket: '{{ bucket_name }}'
|
||
|
s3_url: '{{ s3_url }}'
|
||
|
region: '{{ scaleway_region }}'
|
||
|
object: test.txt
|
||
|
encrypt: false
|
||
|
register: delobj_task
|
||
|
|
||
|
- name: Show delobj_task
|
||
|
debug:
|
||
|
var: delobj_task
|
||
|
|
||
|
- name: delobj_task is success
|
||
|
assert:
|
||
|
that:
|
||
|
- delobj_task is success
|
||
|
|
||
|
- name: delobj_task is changed
|
||
|
assert:
|
||
|
that:
|
||
|
- delobj_task is changed
|
||
|
|
||
|
|
||
|
- name: Delete an object (Confirmation)
|
||
|
aws_s3:
|
||
|
mode: delobj
|
||
|
bucket: '{{ bucket_name }}'
|
||
|
s3_url: '{{ s3_url }}'
|
||
|
region: '{{ scaleway_region }}'
|
||
|
object: test.txt
|
||
|
encrypt: false
|
||
|
register: delobj_confirmation_task
|
||
|
|
||
|
- name: Show delobj_confirmation_task
|
||
|
debug:
|
||
|
var: delobj_confirmation_task
|
||
|
|
||
|
- name: delobj_confirmation_task is success
|
||
|
assert:
|
||
|
that:
|
||
|
- delobj_confirmation_task is success
|
||
|
|
||
|
- name: delobj_confirmation_task is changed
|
||
|
assert:
|
||
|
that:
|
||
|
- delobj_confirmation_task is changed
|