anton_sidelnikov.terraform
Inspired by: https://github.com/darkwizard242/ansible-role-terraform
Ansible Role: Terraform
This role installs the terraform
package by default on Debian/Ubuntu and EL systems.
Role Variables
Here are the available variables (found in defaults/main.yml
):
List of Variables:
terraform_app: terraform
terraform_osarch: linux_amd64
terraform_dl_url: https://releases.hashicorp.com
terraform_dl_loc: /tmp
terraform_bin_path: /usr/local/bin
If you do not set terraform_version
, the latest version will be downloaded.
Variables Table:
Variable | Default Value | Description |
---|---|---|
terraform_app | terraform | The name of the application to install, which is terraform. |
terraform_osarch | linux_amd64 | The operating system architecture. It helps to get the right binaries for the OS. Default is linux_amd64. |
terraform_dl_url | https://releases.hashicorp.com | The URL from which to download the terraform binary. |
terraform_dl_loc | /tmp | Temporary location to store the terraform binary archive during download. Default is /tmp. |
terraform_bin_path | /usr/local/bin | The path where the terraform binary will be stored. Default is /usr/local/bin (commonly in any user's PATH). |
Example Playbook
To install terraform using the role in your Ansible playbooks, use the following:
- hosts: servers
roles:
- role: anton-sidelnikov.terraform
Informazioni sul progetto
Role for installing 'terraform' for performing Infrastructure as Code (IaC).
Installa
ansible-galaxy install anton_sidelnikov.terraform
Licenza
mit
Download
1.5k
Proprietario