mauromedda.ansible_role_terraform

ansible_role_terraform

This is a simple Ansible role for installing Terraform on a RedHat-like system (version 7 or higher).

Requirements

This module only requires Ansible.

Role Variables

terraform_version: 0.10.5
  • terraform_version: The version of Terraform you want to install.
terraform_dist_file: "terraform_{{terraform_version}}_linux_amd64.zip"
  • terraform_dist_file: The name of the Terraform distribution file.
terraform_repo_url: "https://releases.hashicorp.com/terraform/{{terraform_version}}/{{ terraform_dist_file }}"
  • terraform_repo_url: The URL to download the Terraform binary from.
terraform_base_install_dir: /opt/hashicorp/terraform
  • terraform_base_install_dir: The main directory where Terraform will be installed.
terraform_bin: /usr/bin/terraform
  • terraform_bin: The location of the Terraform executable.
terraform_requirements:
  - unzip
  • terraform_requirements: The required package for the Terraform playbook.
terraform_purge_old: true
  • terraform_purge_old: Whether to remove the oldest installed version of Terraform. Default is true.
terraform_cleanup: true
  • terraform_cleanup: Whether to delete the Terraform distribution file after installation. Default is true.

Example Playbook

---
- hosts: localhost
  become: true
  connection: local

  roles:
    - mauromedda.ansible_role_unzip
    - mauromedda.ansible_role_terraform

Usage

Terraform_role

License

BSD

Author Information

Author: Mauro Medda

Informazioni sul progetto

An Ansible role for installing Terraform

Installa
ansible-galaxy install mauromedda.ansible_role_terraform
Licenza
bsd-2-clause
Download
345
Proprietario
Head of DevOps @Zilliqa