Drive part of ansible context from terraform
This commit is contained in:
8
terraform/context.tf
Normal file
8
terraform/context.tf
Normal file
@ -0,0 +1,8 @@
|
||||
resource "local_file" "hosts" {
|
||||
content = yamlencode({
|
||||
hosts: {
|
||||
casey_ip: vultr_server.casey.main_ip
|
||||
}
|
||||
})
|
||||
filename = "${path.module}/../ansible/group_vars/all/hosts.yml"
|
||||
}
|
Reference in New Issue
Block a user