terraform
Collection: community.general
Full Name: parallax.community.general.terraform
Aliases: community.general.terraform, terraform
Synopsis
Manage terraform
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| project_path | string | yes | Path to the Terraform project directory | |
| state | string | present | Desired state (present to apply, absent to destroy, planned to plan only) | |
| plan_file | string | Path to an existing plan file to apply | ||
| state_file | string | Path to the Terraform state file | ||
| variables | string | Terraform variables as key=value pairs, comma-separated | ||
| targets | string | Terraform resource targets, comma-separated | ||
| lock | bool | true | Lock the state file during operations | |
| lock_timeout | int | 0 | Duration to wait for state lock in seconds | |
| force_init | bool | false | Force terraform init even if already initialized | |
| backend_config | string | Backend configuration as key=value pairs, comma-separated | ||
| binary_path | string | terraform | Path to the terraform binary | |
| parallelism | int | 10 | Number of concurrent operations | |
| workspace | string | default | Terraform workspace to use | |
| purge_workspace | bool | false | Delete the workspace after destroy | |
| overwrite_init | bool | true | Overwrite existing init configuration | |
| check_destroy | bool | false | Check if the plan would destroy resources | |
| init_reconfigure | bool | false | Force reconfiguration of the backend during init |
Example
- name: Example terraform task
terraform:
project_path: <your_project_path>