From f78f93e6464e14b07774f5a2f8e5445c1984471c Mon Sep 17 00:00:00 2001 From: Prasad Katti Date: Mon, 30 Oct 2017 08:22:05 -0700 Subject: [PATCH] Added some more info about the aws_s3 module's overwrite option (#31819) --- lib/ansible/modules/cloud/amazon/aws_s3.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/aws_s3.py b/lib/ansible/modules/cloud/amazon/aws_s3.py index 12b2199d9cc..a57c383faed 100644 --- a/lib/ansible/modules/cloud/amazon/aws_s3.py +++ b/lib/ansible/modules/cloud/amazon/aws_s3.py @@ -101,7 +101,10 @@ options: overwrite: description: - Force overwrite either locally on the filesystem or remotely with the object/key. Used with PUT and GET operations. - Boolean or one of [always, never, different], true is equal to 'always' and false is equal to 'never', new in 2.0 + Boolean or one of [always, never, different], true is equal to 'always' and false is equal to 'never', new in 2.0. + When this is set to 'different', the md5 sum of the local file is compared with the 'ETag' of the object/key in S3. + The ETag may or may not be an MD5 digest of the object data. See the ETag response header here + U(http://docs.aws.amazon.com/AmazonS3/latest/API/RESTCommonResponseHeaders.html) default: 'always' aliases: ['force'] version_added: "1.2"