/ansible-s3-website

Because it shouldn't take more than 30 seconds to host a static site

MIT LicenseMIT

ansible-s3-wesbite

A simple ansible role that uses S3, Route53, and cloudfront to create a low-latency static website.

Platforms

Tunables

  • s3_website_domain (string) - The root domain of your static website. e.g example.com
  • s3_website_region (string) - The region for your S3 bucket
  • s3_website_s3_endpoint (string) - The S3 website endpoint. Better to not touch this
  • s3_website_directory (string) - The local directory where your website is located
  • s3_website_index_document (string) - The website index document
  • s3_website_error_document (string) - The website error document
  • s3_website_ns_servers_enabled (boolean) - If you need to add NS servers from another domain provider
  • s3_website_ns_servers (list) - A list of NS servers
  • s3_wesbite_bucket_policy (string) - The bucket policy for S3
  • s3_website_cloudfront_distribution (string) - The distribution configuration for cloudfront

Dependencies

Example Playbook

- hosts: servers
  roles:
     - role: noqcks.s3-website
       s3_website_domain: "benvisser.me"
       s3_website_directory: "/Users/benvisser/data/website"

License

MIT

Contributors