brentwg.terraform
Ansible 角色 - Terraform
这个角色用于安装 Hashicorp 的 Terraform 应用程序。
这个角色主要基于 Jeff Geerling 的 Ansible 角色:Packer。不过,我对它进行了小的修改,以保留以前下载的版本,并添加了一个符号链接,以便您可以根据这个角色中指定的版本切换不同的版本。
需求
无。
角色变量
可以用户修改的变量和默认值如下所示。(有关所有变量,请参见 defaults/main.yml
):
terraform_version: "0.11.3"
要安装的 Terraform 版本。
terraform_arch: "amd64"
您使用的系统架构(例如 386
或 amd64
)。
安装路径为:
/usr/local/terraform/{{ terraform_version }}/terraform
指定版本的符号链接创建在这里:
/usr/local/bin/terraform
依赖
无。
示例剧本
- hosts: all
vars:
terraform_version: "0.11.3"
terraform_arch: "amd64"
roles:
- brentwg.terraform
关于项目
This role installs Hashicorp's Terraform application.
安装
ansible-galaxy install brentwg.terraform
许可证
Unknown
下载
817
拥有者
With regard to current career activity: I have already vaporized to the cloud...