blob: 6fbf34ad9c3d530e784ed88c6a7582ddb3bb3ad5 [file] [log] [blame]
---
# devtools tasks/terraform.yml
#
# SPDX-FileCopyrightText: 2022 Open Networking Foundation <support@opennetworking.org>
# SPDX-License-Identifier: Apache-2.0
# terraform
- name: Download terraform archive
get_url:
url: "{{ devtools_terraform_url }}"
checksum: "{{ devtools_terraform_checksum }}"
dest: "{{ devtools_dist_dir }}/terraform.zip"
- name: Unarchive terraform
unarchive:
src: "{{ devtools_dist_dir }}/terraform.zip"
dest: "{{ devtools_dist_dir }}"
remote_src: true
- name: Install terraform binary
copy:
src: "{{ devtools_dist_dir }}/terraform"
dest: /usr/local/bin/terraform
mode: "0755"
remote_src: true
# tfmask
- name: Download/install tfmask binary
get_url:
url: "{{ devtools_tfmask_url }}"
checksum: "{{ devtools_tfmask_checksum }}"
dest: /usr/local/bin/tfmask
mode: "0755"