I have some directory which i want to copy on s3 bucket using aws s3 module ansible i have tried this
aws_s3:
aws_secret_key: “{{ AWS_SECRET_KEY }}”
aws_access_key: “{{ AWS_ACCESS_KEY }}”
bucket: “{{ BUCKET }}”
object: /project/
src: “{{ role_path }}/files/server-upgrade/”
mode: put
but i am getting error
fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Local object for PUT does not exist”}