2020-02-21 21:51:16 +00:00
|
|
|
resource "local_file" "hosts" {
|
2020-02-21 22:16:08 +00:00
|
|
|
content = yamlencode({
|
|
|
|
hosts : {
|
2021-09-27 14:49:56 +01:00
|
|
|
casey_ip : vultr_instance.casey.main_ip,
|
|
|
|
walker_ip : vultr_instance.walker.main_ip,
|
|
|
|
grimes_ip : vultr_instance.grimes.main_ip,
|
2022-01-11 09:07:48 +00:00
|
|
|
decker_ip : linode_instance.decker.ip_address,
|
2020-02-21 22:16:08 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
filename = "${path.module}/../ansible/group_vars/all/hosts.yml"
|
2020-02-21 21:51:16 +00:00
|
|
|
}
|