imfreedom/bamboo-terraform

Parents 2f60a1721b1c
Children 7eb87026fdb8
Try to make the dependency stuff work correctly, still having some issues with dns, but kind of working
--- a/instance-worker.tf Tue Jun 18 05:45:16 2019 -0500
+++ b/instance-worker.tf Tue Jun 18 06:05:47 2019 -0500
@@ -97,6 +97,10 @@
cache_vars = "${sha1(local_file.cache_variables.content)}"
}
+ depends_on = [
+ "null_resource.cache_ansible"
+ ]
+
provisioner "local-exec" {
command = "ansible-playbook -i ${path.module}/hosts.workers -b ansible/worker.yml --vault-password-file=secrets/ansible_vault_password.txt --extra-vars @${local_file.cache_variables.filename}"
}