mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
Updated ansible output
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
output "ansible_inventory" {
|
||||
value = templatefile("${path.module}/inventory.tftpl", {
|
||||
devops = hcloud_server.server_devops, k8s_servers = [hcloud_server.server_k8s_test]
|
||||
})
|
||||
depends_on = [hcloud_server.server_k8s_test, hcloud_server.server_k8s_test]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
output "ansible_inventory" {
|
||||
value = templatefile("${path.module}/inventory.tftpl", {
|
||||
devops = hcloud_server.server_devops.ipv4_address, k8s_servers = [hcloud_server.server_k8s_test.ipv4_address]
|
||||
})
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
[kubernetes]
|
||||
%{ for server in k8s_servers ~}
|
||||
${server.name} ansible_host=${server.ipv4_address} ansible_python_interpreter=/usr/bin/python3
|
||||
%{ for ip in k8s_servers ~}
|
||||
${ip} ansible_python_interpreter=/usr/bin/python3
|
||||
%{ endfor ~}
|
||||
|
||||
[ci]
|
||||
${devops.name} ansible_host=${devops.ipv4_address} ansible_python_interpreter=/usr/bin/python3
|
||||
${devops} ansible_python_interpreter=/usr/bin/python3
|
||||
|
||||
Reference in New Issue
Block a user