diff --git a/ansible/group_vars/all/hosts.yml b/ansible/group_vars/all/hosts.yml index aa21c63..f0765ed 100644 --- a/ansible/group_vars/all/hosts.yml +++ b/ansible/group_vars/all/hosts.yml @@ -1,2 +1,2 @@ -hosts: - casey_ip: 108.61.221.88 +"hosts": + "casey_ip": "108.61.221.88" diff --git a/terraform/context.tf b/terraform/context.tf new file mode 100644 index 0000000..b827652 --- /dev/null +++ b/terraform/context.tf @@ -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" +}