diff options
author | clyhtsuriva <aimeric@adjutor.xyz> | 2025-02-03 22:54:35 +0100 |
---|---|---|
committer | clyhtsuriva <aimeric@adjutor.xyz> | 2025-02-03 22:54:35 +0100 |
commit | 834feb58bdcbd448714888147e1db4421270ba93 (patch) | |
tree | 9080305b3be6c0303510510814722712aec64f3e /opentofu/modules/ansible_provisioner/main.tf | |
parent | ab5c6e6d2c0f974a94bc0353908ff65cb9f88202 (diff) |
opentofu&ansible: add `become` to `ansible_provisioner` & open k8s ports
Diffstat (limited to 'opentofu/modules/ansible_provisioner/main.tf')
-rw-r--r-- | opentofu/modules/ansible_provisioner/main.tf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opentofu/modules/ansible_provisioner/main.tf b/opentofu/modules/ansible_provisioner/main.tf index 54e3346..cac666d 100644 --- a/opentofu/modules/ansible_provisioner/main.tf +++ b/opentofu/modules/ansible_provisioner/main.tf @@ -17,7 +17,7 @@ resource "null_resource" "ansible_provisioner" { provisioner "local-exec" { command = <<-EOT - ANSIBLE_HOST_KEY_CHECKING=False ANSIBLE_CONFIG=${path.root}/../ansible/ansible.cfg ansible-playbook \ + 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} \ |