HenryGP / om_ansible

Minimalistic, disposable Ops Manager environment with Ansible
19 stars 17 forks source link

Creating S3 bucket task not idempotent #42

Closed emisca closed 4 years ago

emisca commented 4 years ago
TASK [Creating S3 bucket] **************************************************************************************************************************************************************************************
fatal: [backup]: FAILED! => {"changed": true, "cmd": "/opt/minio/bin/s3cmd-master/s3cmd mb s3://ombucket", "delta": "0:00:01.150101", "end": "2019-11-03 20:24:44.743854", "msg": "non-zero return code", "rc": 13, "start": "2019-11-03 20:24:43.593753", "stderr": "ERROR: S3 error: 409 (BucketAlreadyOwnedByYou): Your previous request to create the named bucket succeeded and you already own it.", "stderr_lines": ["ERROR: S3 error: 409 (BucketAlreadyOwnedByYou): Your previous request to create the named bucket succeeded and you already own it."], "stdout": "", "stdout_lines": []}
emisca commented 4 years ago

sounds like most of the OM API call we use aren't.