Skip to content

mauromedda/ansible_role_terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible_role_terraform

This is a simple ansible role to install terraform into a RedHat-like 7+ box.

Requirements

This module hasn't specific requirements just Ansible.

Role Variables

terraform_version: 0.10.5
  • terraform_version: Specify the terraform version to install
terraform_dist_file: "terraform_{{terraform_version}}_linux_amd64.zip"
  • terraform_dist_file: Terraform distribution archive
terraform_repo_url: "https://releases.hashicorp.com/terraform/{{terraform_version}}/{{ terraform_dist_file }}"
  • terraform_repo_url: Terraform distribution URL. Used to fetch the Terraform binary
terraform_base_install_dir: /opt/hashicorp/terraform
  • terraform_base_install_dir: Root of the Terraform installation
terraform_bin: /usr/bin/terraform
  • terraform_bin: Terraform binary location
terraform_requirements:
  - unzip
  • terraform_requirements: Terraform playbook requirements
terraform_purge_old: true
  • terraform_purge_old: Delete the oldest version installed in the system. Default: true
terraform_cleanup: true
  • terraform_cleanup: Remove the Terraform distribution archive. Default: 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

About

Ansible role for terraform installation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published