So what does this do?

March 31, 2026 ยท View on GitHub

A better way to deploy Barrel Wisdom. I learned Terraform and Ansible and suddenly I want to solve all of life's problems using them.

So what does this do?

  • Creates necessary infrastructure (VPS, DNS records) to deploy a website.
  • Ansible configures the VPS to actually deploy the website.
  • Deploys updates on demand.

How to use

To build infrastructure, create a terraform.tfvars with the following:

username             =
cloudflare_zone_id   =
domain               = "text.barrelwisdom.com"
hcloud_pvt_key       =

Be sure to have pass installed, and give it the values for cloudflare-token and hetzner-token

Then run:

terraform init
./tf-run.sh plan
./tf-run.sh apply

Running this will generate ansible/inventory.ini for easy playbook commands. For instance:

ansible-playbook -i inventory.ini --tags 'all' update-bw.yml

With db_dump available under the --tags flag.