Check out a template execution in this YouTube video!
Overview
go-strategize is a simple CLI program that provisions your infrastructure using terraform and configures it using ansible. To connect the two, it assumes that you're writing the ansible inventory to a file somewhere with terraform.
[Optional] Copies your .tfvars file(terraform) over to the cloned terraform repo folder
Makes sure some playbooks are available in the provided folder path for playbooks
Executes terraform init and terraform apply
Reads the (hopefully) generated ansible hosts file from the provided path
Copies ssh public keys for passwordless auth using ssh-copy-id
Executes ansible-galaxy collection install
Executes all the playbooks present in a folder
It's specially useful for people who usually have very long running ansible playbooks and need them to be running in a closed network.
Imagine you need to provision some VMs and then install vanila k8s or whatever application on them. In a closed network you probably don't care about SSH key verification. Assuming the these two points are valid, you can utilize go-strategize with flag '-strict=false' to skip hostname verification and go grab a cup of coffee while your infrastructure is being provisioned and configured!