infrastructure/terraform/context.tf
2022-01-11 09:07:48 +00:00

11 lines
348 B
HCL

resource "local_file" "hosts" {
content = yamlencode({
hosts : {
casey_ip : vultr_instance.casey.main_ip,
walker_ip : vultr_instance.walker.main_ip,
grimes_ip : vultr_instance.grimes.main_ip,
decker_ip : linode_instance.decker.ip_address,
}
})
filename = "${path.module}/../ansible/group_vars/all/hosts.yml"
}