Zack Williams | 04575aa | 2022-03-19 21:51:44 -0700 | [diff] [blame] | 1 | --- |
| 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 Williams | a3ecef4 | 2022-03-19 21:51:44 -0700 | [diff] [blame] | 12 | dest: "{{ devtools_dist_dir }}/terraform.zip" |
Zack Williams | 04575aa | 2022-03-19 21:51:44 -0700 | [diff] [blame] | 13 | |
| 14 | - name: Unarchive terraform |
| 15 | unarchive: |
Zack Williams | a3ecef4 | 2022-03-19 21:51:44 -0700 | [diff] [blame] | 16 | src: "{{ devtools_dist_dir }}/terraform.zip" |
| 17 | dest: "{{ devtools_dist_dir }}" |
Zack Williams | 04575aa | 2022-03-19 21:51:44 -0700 | [diff] [blame] | 18 | remote_src: true |
| 19 | |
| 20 | - name: Install terraform binary |
| 21 | copy: |
Zack Williams | a3ecef4 | 2022-03-19 21:51:44 -0700 | [diff] [blame] | 22 | src: "{{ devtools_dist_dir }}/terraform" |
Zack Williams | 04575aa | 2022-03-19 21:51:44 -0700 | [diff] [blame] | 23 | 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" |