How to download the entire contents of a folder in an S3 bucket with Ansible
Just ran into this issue today. I needed to be able to download all the files inside a folder stored in an S3 bucket with Ansible.
The aws_s3 module docs on the Ansible site didn't provide an example on how to do this, but I did find a couple of articles that pointed me in the right direction.
- name: Get list of files from S3
aws_s3:
mode: list
aws_access_key: "{{ aws_access_key_id }}"
aws_secret_key: "{{ …