Ansible role to install terraform infrastructure as code tool.
Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.
- Minimum Ansible version:
2.10
Architecture for terraform repo
terraform_arch: "{{ 'arm64' if ansible_architecture == 'aarch64' else 'amd64' }}"
Enable installation of checkov
terraform_checkov_enabled: false
Define a specific version of checkov
terraform_checkov_version: 2.3.214
Path to install the binaries
terraform_install_path: /usr/bin
Path for the repository keyring
terraform_keyring: /usr/share/keyrings/hashicorp-archive-keyring.gpg
Architecture for tflint
terraform_tflint_arch: "{{ 'arm64' if ansible_architecture == 'aarch64' else 'amd64'
}}"
URL to download tflint from
terraform_tflint_download: https://github.com/terraform-linters/tflint/releases/download/v{{
terraform_tflint_version }}/tflint_linux_{{ terraform_tflint_arch }}.zip
Enable installation of tflint
terraform_tflint_enabled: true
Version of tflint to install
terraform_tflint_version: 0.54.0
Architecture for tfsec
terraform_tfsec_arch: "{{ 'arm64' if ansible_architecture == 'aarch64' else 'amd64'
}}"
URL to download tfsec from
terraform_tfsec_download: https://github.com/aquasecurity/tfsec/releases/download/v{{
terraform_tfsec_version }}/tfsec_{{ terraform_tfsec_version }}_linux_{{ terraform_tfsec_arch
}}.tar.gz
Enable installation of tfsec
terraform_tfsec_enabled: true
Version of tfsec to install
terraform_tfsec_version: 1.28.11
terraform
- None
Apache-2.0