From e02cf37430f92859a0f4b644af6d2665847c3997 Mon Sep 17 00:00:00 2001 From: clyhtsuriva Date: Tue, 4 Mar 2025 20:09:31 +0100 Subject: opentofu: Incr. nb of k3s workers + remove ansible custom module --- opentofu/modules/ansible_provisioner/main.tf | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 opentofu/modules/ansible_provisioner/main.tf (limited to 'opentofu/modules/ansible_provisioner/main.tf') diff --git a/opentofu/modules/ansible_provisioner/main.tf b/opentofu/modules/ansible_provisioner/main.tf deleted file mode 100644 index b836213..0000000 --- a/opentofu/modules/ansible_provisioner/main.tf +++ /dev/null @@ -1,15 +0,0 @@ -resource "null_resource" "ansible_provisioner" { - triggers = { - ip_or_inventory = coalesce(var.vm_ip, var.inventory_file_path) # Choose based on what is provided - } - - provisioner "local-exec" { - command = <<-EOT - ANSIBLE_HOST_KEY_CHECKING=False ANSIBLE_CONFIG=${path.root}/../ansible/ansible.cfg ansible-playbook -b -v \ - -i ${var.inventory_file_path != null ? var.inventory_file_path : "${var.vm_ip},"} \ - -u ${var.vm_username} \ - --private-key ${var.ssh_private_key_path} \ - ${var.ansible_playbook_path} - EOT - } -} -- cgit v1.2.3