From 81abb3084633a3983b5937069cfa467503e2e081 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Fri, 18 Feb 2022 16:41:33 +0100 Subject: [PATCH] Update path for ansible-playbook --- infrastructure/create-resources/hcloud.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/create-resources/hcloud.tf b/infrastructure/create-resources/hcloud.tf index bb56dd1..a818662 100644 --- a/infrastructure/create-resources/hcloud.tf +++ b/infrastructure/create-resources/hcloud.tf @@ -33,7 +33,7 @@ resource "null_resource" "configure_serverctl_master" { count = var.serverctl_master_count provisioner "local-exec" { - command = "ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -u root -i '${element(hcloud_server.serverctl_master.*.ipv4_address, 0)},' --private-key ${var.pvt_key} -e 'pub_key=${var.pub_key}' apache-install.yml" + command = "ANSIBLE_HOST_KEY_CHECKING=False /usr/bin/ansible-playbook -u root -i '${element(hcloud_server.serverctl_master.*.ipv4_address, 0)},' --private-key ${var.pvt_key} -e 'pub_key=${var.pub_key}' apache-install.yml" } triggers = {