Coder.comC
Coder.com4y ago
2 replies
Mr_Neezer

Provision Coder Workspace to DigitalOcean using Ansible?

Anyone have guidance on how to do this? I'm using the example template from https://github.com/coder/coder/tree/main/examples/templates/do-linux and I see that it uses user_data = templatefile(), but I'd like to swap that for running an Ansible playbook. I found this (https://www.digitalocean.com/community/tutorials/how-to-use-ansible-with-terraform-for-configuration-management) article by DigitalOcean about Terraform and Ansible working together, but I don't have a firm grasp on how to tweak that content so that it works with a Coder template.

I think I want to run provisioner "local-exec", but the "local" is not my host machine, but the Coder host, and I don't know how to install Ansible on that.
GitHub
Remote development environments on your infrastructure provisioned with Terraform - coder/examples/templates/do-linux at main · coder/coder
coder/examples/templates/do-linux at main · coder/coder
Ansible and Terraform are not competing solutions, as they resolve different phases of infrastructure and software deployment. In this tutorial, you’ll deplo
How To Use Ansible with Terraform for Configuration Management  | D...
Was this page helpful?