ansible-desktop/roles/terraform/tasks/main.yml

21 lines
620 B
YAML
Raw Normal View History

2023-07-12 17:44:02 +00:00
- 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