s3_sync exclude parameter does not work with folders

16 views
Skip to first unread message

Erik Daritan

unread,
Dec 20, 2017, 7:55:45 PM12/20/17
to Ansible Project
I am trying to use s3_sync to upload files from local git repository to S3 without the .git directory. I tried the exclude parameter with different variations such as ".git,.git/*,*.git*/*"

This is the line that I tested (with dummy values):

s3_sync: aws_access_key="xxx" aws_secret_key="xxx" bucket="somes3bucket" file_root=/path/ exclude=".git,.git/*,*.git*/*" mode=push delete=yes

Anyone has had any success with excluding folders?

Erik Daritan

unread,
Dec 21, 2017, 7:02:50 PM12/21/17
to Ansible Project
Any thoughts or suggestions on what I can try?
Reply all
Reply to author
Forward
0 new messages