Hacker News new | ask | show | jobs
by PaywallBuster 2239 days ago
I think you're exagerating.

I use Ansible to provision dev environments on each PR, it works fine, every time a deployment occurs Ansible will deploy if required, otherwise proceeded with the deployment.

Destroying the environment is done separate, triggered by a webhook once the PR is closed.

1 comments

If you're just provisioning software on an individual server, then sure. I agree. It kinda works okay.

What I'm talking about is using the cloud modules to spin up servers, and god help you, entire VPC set ups.

Each PR will provision a new server and then configure/deploy.
So wait, you make a playbook per individual server instance? Why?
He didn't say that. He presumably uses one playbook that creates vms and provisions the software for every PR. With ansible this can be idempotent and creating vms is by default idempotent.