Where do you specify s3 url? I have used a synchronized module but it throws errors as below. [image: image.png]
On Wed, Sep 9, 2020, 12:36 PM Mauro Ferrigno <[email protected]> wrote: > Hello, > I used aws_s3 and file module to pull s3 bucket to local with folders and > subfolders and files related, but please next time show your stuff and ask > where you are in stuck > > - name: get s3_bucket_items > aws_s3: > mode: list > bucket: "{{ automation_bucket }}" > register: s3_bucket_items > > - name: "Create inventory folder recursively" > file: > path: "{{ item| dirname }}" > state: directory > recurse: true > with_items: "{{ s3_bucket_items.s3_keys }}" > > - name: "Download files from S3" > aws_s3: > mode: get > bucket: "{{ automation_bucket }}" > object: "{{ item }}" > dest: "{{ item| dirname }}/{{ item|basename }}" > with_items: "{{ s3_bucket_items.s3_keys }}" > > > Il giorno mer 9 set 2020 alle ore 08:16 surabhy vaishakh < > [email protected]> ha scritto: > >> Can anyone help with this? >> I am trying to download a s3folder using ansible playbook. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ansible Project" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/CABB7rDds%3DcOi4b%2BEqJksJf6jmCZtVFyw_vfQbLOs0a%2Bxy_mbWQ%40mail.gmail.com >> <https://groups.google.com/d/msgid/ansible-project/CABB7rDds%3DcOi4b%2BEqJksJf6jmCZtVFyw_vfQbLOs0a%2Bxy_mbWQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAGe%3DgqYjo-TA_gW1Of%3DcYJ9yuPnSBkUniaNQBcV%2BG%3DJp3P-6rg%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAGe%3DgqYjo-TA_gW1Of%3DcYJ9yuPnSBkUniaNQBcV%2BG%3DJp3P-6rg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CABB7rDfzhghGATyo77ixc-y8HJpYyZK_XMXQgA1x3m_8-bHRhA%40mail.gmail.com.
