From 777f0a8080c825bd9306f482a04dab3e0e393bc5 Mon Sep 17 00:00:00 2001 From: Jake Kreider Date: Sun, 2 Mar 2014 20:45:53 -0600 Subject: [PATCH] Updated S3 metadata examples --- library/cloud/s3 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/cloud/s3 b/library/cloud/s3 index b660fd53c9..4c4503a9db 100644 --- a/library/cloud/s3 +++ b/library/cloud/s3 @@ -105,6 +105,8 @@ EXAMPLES = ''' - s3: bucket=mybucket object=/my/desired/key.txt src=/usr/local/myfile.txt mode=put # PUT/upload with metadata - s3: bucket=mybucket object=/my/desired/key.txt src=/usr/local/myfile.txt mode=put metadata='Content-Encoding=gzip' +# PUT/upload with multiple metadata +- s3: bucket=mybucket object=/my/desired/key.txt src=/usr/local/myfile.txt mode=put metadata='Content-Encoding=gzip,Cache-Control=no-cache' # PUT/upload and do not overwrite remote file (trust local) - s3: bucket=mybucket object=/my/desired/key.txt src=/usr/local/myfile.txt mode=put force=false # Download an object as a string to use else where in your playbook