blob: 6fbf34ad9c3d530e784ed88c6a7582ddb3bb3ad5 [file] [log] [blame]
Zack Williams04575aa2022-03-19 21:51:44 -07001---
2# devtools tasks/terraform.yml
3#
4# SPDX-FileCopyrightText: 2022 Open Networking Foundation <support@opennetworking.org>
5# SPDX-License-Identifier: Apache-2.0
6
7# terraform
8- name: Download terraform archive
9 get_url:
10 url: "{{ devtools_terraform_url }}"
11 checksum: "{{ devtools_terraform_checksum }}"
Zack Williamsa3ecef42022-03-19 21:51:44 -070012 dest: "{{ devtools_dist_dir }}/terraform.zip"
Zack Williams04575aa2022-03-19 21:51:44 -070013
14- name: Unarchive terraform
15 unarchive:
Zack Williamsa3ecef42022-03-19 21:51:44 -070016 src: "{{ devtools_dist_dir }}/terraform.zip"
17 dest: "{{ devtools_dist_dir }}"
Zack Williams04575aa2022-03-19 21:51:44 -070018 remote_src: true
19
20- name: Install terraform binary
21 copy:
Zack Williamsa3ecef42022-03-19 21:51:44 -070022 src: "{{ devtools_dist_dir }}/terraform"
Zack Williams04575aa2022-03-19 21:51:44 -070023 dest: /usr/local/bin/terraform
24 mode: "0755"
25 remote_src: true
26
27# tfmask
28- name: Download/install tfmask binary
29 get_url:
30 url: "{{ devtools_tfmask_url }}"
31 checksum: "{{ devtools_tfmask_checksum }}"
32 dest: /usr/local/bin/tfmask
33 mode: "0755"