From 45b9c2edd5f56a583063f221f8b0bddb7ae5eab5 Mon Sep 17 00:00:00 2001 From: Florian Bachinger Date: Mon, 13 Nov 2023 16:07:44 +0100 Subject: [PATCH] state absolute public key location --- kubernetes/terraform/ansible.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/terraform/ansible.tf b/kubernetes/terraform/ansible.tf index 6869b93..a7db89c 100644 --- a/kubernetes/terraform/ansible.tf +++ b/kubernetes/terraform/ansible.tf @@ -33,7 +33,7 @@ resource "local_file" "ansible_inventory" { [all:vars] ansible_python_interpreter=/usr/bin/python3 ansible_ssh_extra_args='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' - ansible_ssh_private_key_file=~/.ssh/id_rsa + ansible_ssh_private_key_file=/root/.ssh/id_rsa ansible_user=${var.vm_username} EOF } \ No newline at end of file