How do read the content of a file in s3 bucket into ansible variable

Viewed 889

Need to do a file lookup in ansible but the file is on s3 and not local, how do I read the content of the remote file on s3, doing something like this:

{{lookup('file','s3://examplebucket/conf_file.json') }}

1 Answers
Related