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.
24 lines
436 B
YAML
24 lines
436 B
YAML
6 years ago
|
- name: Get str from bucket
|
||
|
aws_s3:
|
||
|
mode: getstr
|
||
|
bucket: '{{ bucket_name }}'
|
||
|
s3_url: '{{ s3_url }}'
|
||
|
region: '{{ scaleway_region }}'
|
||
|
encrypt: false
|
||
|
object: test.txt
|
||
|
register: getstr_task
|
||
|
|
||
|
- name: Show getstr_task
|
||
|
debug:
|
||
|
var: getstr_task
|
||
|
|
||
|
- name: getstr_task is success
|
||
|
assert:
|
||
|
that:
|
||
|
- getstr_task is success
|
||
|
|
||
|
- name: getstr_task is changed
|
||
|
assert:
|
||
|
that:
|
||
|
- getstr_task is changed
|