I’ve been learning Ansible. I also have an NGINX server at home hosting a simple Hugo blog. I’d like to be able to turn the server off from time to time and have it rely on cloud hosts. How can I add Ansible into the mix?
What I have in mind is
1. Create a GitHub repo of the Hugo site
2. Use Ansible to
1. Install Hugo and NGINX onto some cloud hosts
2. Have the hosts pull the latest commit from the Hugo repo
3. Have the hosts run the `hugo` command to update their NGINX server
3. Use CloudFlare as a reverse proxy/load balancer
Any precautions or suggestions would be appreciated. Especially for free cloud hosts, I’ve heard mixed things about AWS’s free tier.
View Reddit by priusboy – View Source