# Minio and Ansible

**URL:** <https://forum.ansible.com/t/minio-and-ansible/36215>\
**Category:** Ansible Project\
**Created:** [January 18, 2022, 7:47am UTC](https://forum.ansible.com/t/minio-and-ansible/36215 "2022-01-18T07:47:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andreas\_Wachter](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@Andreas\_Wachter](https://forum.ansible.com/u/Andreas_Wachter)\
**Post date:** [January 18, 2022, 7:47am UTC](https://forum.ansible.com/t/minio-and-ansible/36215/1 "2022-01-18T07:47:44Z")

</div>

Hi,  
I try to download a file from my minio with the following playbook:

- name: download file  
aws\_s3:  
s3\_url: [https://minio.xxx.yyy](https://minio.xxx.yyy)  
bucket: artifacts  
object: awesome/file.jar  
dest: /some/where/file.jar  
mode: get  
aws\_access\_key: ansible  
aws\_secret\_key: xxxyyyzzz

Did I do something wrong? Can someone help me out?

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [January 18, 2022, 4:56pm UTC](https://forum.ansible.com/t/minio-and-ansible/36215/2 "2022-01-18T16:56:33Z")

</div>

If you tell us what problem you have, then maybe

---

<div class="post-metadata">

**Author:** ![Andreas\_Wachter](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@Andreas\_Wachter](https://forum.ansible.com/u/Andreas_Wachter)\
**Post date:** [January 18, 2022, 5:46pm UTC](https://forum.ansible.com/t/minio-and-ansible/36215/3 "2022-01-18T17:46:39Z")

</div>

Ah, I forgot to add the error message…

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: botocore.exceptions.ClientError: An error occurred (403) when calling the HeadBucket operation: Forbidden fatal: [minecraft]: FAILED! =\> {“boto3\_version”: “1.20.37”, “botocore\_version”: “1.23.37”, “changed”: false, “error”: {“code”: “403”, “message”: “Forbidden”}, “msg”: “Failed while looking up bucket (during bucket\_check) artifacts.: An error occurred (403) when calling the HeadBucket operation: Forbidden”, “response\_metadata”: {“host\_id”: “”, “http\_headers”: {“connection”: “keep-alive”, “content-length”: “209”, “content-type”: “text/xml; charset=utf-8”, “date”: “Tue, 18 Jan 2022 07:22:01 GMT”, “server”: “nginx/1.20.1”}, “http\_status\_code”: 403, “request\_id”: “”, “retry\_attempts”: 0}}

I know that a 403 means forbidden, but I really don’t get it. Everything is reachable from my server.

---

<div class="post-metadata">

**Author:** ![Andreas\_Wachter](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@Andreas\_Wachter](https://forum.ansible.com/u/Andreas_Wachter)\
**Post date:** [January 18, 2022, 6:29pm UTC](https://forum.ansible.com/t/minio-and-ansible/36215/4 "2022-01-18T18:29:56Z")

</div>

seems to be my reverse proxy setup…
