This message was deleted.
# general
s
This message was deleted.
h
I would use the terraform_data resource to kick the script off https://medium.com/@thiagoalves/a-reason-to-stop-using-the-terraform-null-resource-51180b2339
I have used the null resource before to kick off ansible playbooks just to keep everything managed in TF
t
IMO, I think using Ansible is great... but it's often overkill. A lot of times for provisioning I can get away with using cloud init files like this https://developer.hashicorp.com/terraform/tutorials/provision/cloud-init
h
ooh thats even better, i keep forgetting cloud init exists 😂
t
Yeah, it's stupid handy if you only need to setup provisioning once... if you want to keep everything in compliance or roll updates, Ansible is definitely the way to go. However, most of the time when I want to roll an update, I just create a new VM and terminate the old one. 🤷‍♂️