A simple ansible role that uses S3, Route53, and cloudfront to create a low-latency static website.
s3_website_domain
(string) - The root domain of your static website. e.g example.coms3_website_region
(string) - The region for your S3 buckets3_website_s3_endpoint
(string) - The S3 website endpoint. Better to not touch thiss3_website_directory
(string) - The local directory where your website is locateds3_website_index_document
(string) - The website index documents3_website_error_document
(string) - The website error documents3_website_ns_servers_enabled
(boolean) - If you need to add NS servers from another domain providers3_website_ns_servers
(list) - A list of NS serverss3_wesbite_bucket_policy
(string) - The bucket policy for S3s3_website_cloudfront_distribution
(string) - The distribution configuration for cloudfront
- hosts: servers
roles:
- role: noqcks.s3-website
s3_website_domain: "benvisser.me"
s3_website_directory: "/Users/benvisser/data/website"