Add terraform & terragrunt install
This commit is contained in:
parent
5e500db618
commit
f23b235ebd
@ -16,3 +16,4 @@
|
||||
- prusa-slicer
|
||||
- intellij
|
||||
- chromium
|
||||
- terraform
|
||||
|
20
roles/terraform/tasks/main.yml
Normal file
20
roles/terraform/tasks/main.yml
Normal file
@ -0,0 +1,20 @@
|
||||
- name: "Download terraform {{ terraform.version }}"
|
||||
become: yes
|
||||
unarchive:
|
||||
src: https://releases.hashicorp.com/terraform/{{ terraform.version }}/terraform_{{ terraform.version }}_linux_amd64.zip
|
||||
dest: /usr/local/bin
|
||||
remote_src: yes
|
||||
mode: 0755
|
||||
|
||||
- name: "Remove terragrunt"
|
||||
become: yes
|
||||
file:
|
||||
path: /usr/local/bin/terragrunt
|
||||
state: absent
|
||||
|
||||
- name: "Download terragrunt {{ terragrunt.version }}"
|
||||
become: yes
|
||||
get_url:
|
||||
url: https://github.com/gruntwork-io/terragrunt/releases/download/v{{ terragrunt.version }}/terragrunt_linux_amd64
|
||||
dest: /usr/local/bin/terragrunt
|
||||
mode: 0755
|
5
roles/terraform/vars/main.yml
Normal file
5
roles/terraform/vars/main.yml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
terraform:
|
||||
version: 1.3.9
|
||||
terragrunt:
|
||||
version: 0.40.2
|
Loading…
Reference in New Issue
Block a user