Skip to content

Ansible role to install terraform infrastructure as code tool

License

Notifications You must be signed in to change notification settings

rolehippie/terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform

Source Code General Workflow Readme Workflow Galaxy Workflow License: Apache-2.0 Ansible Role

Ansible role to install terraform infrastructure as code tool.

Sponsor

Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.

Table of content


Requirements

  • Minimum Ansible version: 2.10

Default Variables

terraform_arch

Architecture for terraform repo

Default value

terraform_arch: "{{ 'arm64' if ansible_architecture == 'aarch64' else 'amd64' }}"

terraform_checkov_enabled

Enable installation of checkov

Default value

terraform_checkov_enabled: false

terraform_checkov_version

Define a specific version of checkov

Default value

terraform_checkov_version: 2.3.214

terraform_install_path

Path to install the binaries

Default value

terraform_install_path: /usr/bin

terraform_keyring

Path for the repository keyring

Default value

terraform_keyring: /usr/share/keyrings/hashicorp-archive-keyring.gpg

terraform_tflint_arch

Architecture for tflint

Default value

terraform_tflint_arch: "{{ 'arm64' if ansible_architecture == 'aarch64' else 'amd64'
  }}"

terraform_tflint_download

URL to download tflint from

Default value

terraform_tflint_download: https://github.com/terraform-linters/tflint/releases/download/v{{
  terraform_tflint_version }}/tflint_linux_{{ terraform_tflint_arch }}.zip

terraform_tflint_enabled

Enable installation of tflint

Default value

terraform_tflint_enabled: true

terraform_tflint_version

Version of tflint to install

Default value

terraform_tflint_version: 0.51.1

terraform_tfsec_arch

Architecture for tfsec

Default value

terraform_tfsec_arch: "{{ 'arm64' if ansible_architecture == 'aarch64' else 'amd64'
  }}"

terraform_tfsec_download

URL to download tfsec from

Default value

terraform_tfsec_download: https://github.com/aquasecurity/tfsec/releases/download/v{{
  terraform_tfsec_version }}/tfsec-linux-{{ terraform_tfsec_arch }}

terraform_tfsec_enabled

Enable installation of tfsec

Default value

terraform_tfsec_enabled: true

terraform_tfsec_version

Version of tfsec to install

Default value

terraform_tfsec_version: 1.28.6

Discovered Tags

terraform

Dependencies

  • None

License

Apache-2.0

Author

Thomas Boerger