Skip to content

Commit b96ceff

Browse files
mcgrofchucklever
authored andcommitted
terraform: Enable fact gathering for localhost
Terraform providers are platform-specific binaries installed to paths that include the operating system and architecture: ~/.terraform.d/plugins/registry.terraform.io/<namespace>/<name>/<ver>/<os>_<arch>/ The DataCrunch provider integration uses ansible_system and ansible_architecture to construct this path dynamically, allowing the same playbook to work on Linux x86_64, Linux ARM64, macOS, etc. These variables are Ansible facts populated by the setup module during fact gathering. With gather_facts disabled, these variables are undefined and the playbook fails when attempting to install or locate the DataCrunch terraform provider. Remove the gather_facts: false directive so Ansible collects system facts before the terraform role executes. Generated-by: Claude AI Signed-off-by: Luis Chamberlain <[email protected]>
1 parent 36dc2bf commit b96ceff

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

playbooks/terraform.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
- name: Manage infrastructure lifecycle and SSH access with Terraform
33
hosts: localhost
4-
gather_facts: false
54
roles:
65
- role: terraform

0 commit comments

Comments
 (0)